> Hello. How can we define a global variable in postgresql?
you can also use global structure in plpython for example:
http://www.postgresql.org/docs/9.0/static/plpython-sharing.html