Re: [GENERAL] Session variables (how do I pass session data to a function)

2008-10-21 Thread Philip W. Dalrymple
thanks for everyone's help on this. - Original Message - From: "Guy Rouillier" <[EMAIL PROTECTED]> To: "General Postgres Mailing List" Sent: Monday, October 20, 2008 7:22:22 PM GMT -05:00 US/Canada Eastern Subject: Re: [GENERAL] Session variables (how do I pa

Re: [GENERAL] Session variables (how do I pass session data to a function)

2008-10-20 Thread Guy Rouillier
Philip W. Dalrymple wrote: What I want to do is to add to this another field that will be NULL UNLESS the session sets a value to the "user" for that the middle-wear system is acting for. This can be done via a setting. See http://www.postgresql.org/docs/8.2/static/functions-admin.html#FUNC

Re: [GENERAL] Session variables (how do I pass session data to a function)

2008-10-20 Thread Harald Armin Massa
Philip, "session variables" is the perfect name for this kind of use; and googling it up some times ago lead me to a) a temp table implementation b) some shared memory implementation of these I can present you with a), written to store an integer user-ID; you can adjust it accordingly: CREATE O

[GENERAL] Session variables (how do I pass session data to a function)

2008-10-20 Thread Philip W. Dalrymple
I have a question on how to do something with Postgres that I think of by the name of "Session Variables". What I want to do is build a table that will be filled in by a trigger, it will contains three fields in addition to the fields in the table that causes the trigger that will contain the ti