Postgresql Variable In Python Definition