Postgresql Function Set In Python Example Code