Global variables - Mailing list pgsql-novice

From Jean-Yves F. Barbier
Subject Global variables
Date
Msg-id 20111105153148.665c34ba@anubis.defcon1
Whole thread Raw
List pgsql-novice
Hi list,

I think I can create "global variables" into a session, working like
ie: SHOW 'search_path' (but I don't remember how), but is it a good practice?

I have several functions that depends on the DB owner's OID, so my idea is
to store this OID into a "global variables" to avoid these functions make
a call to the owner's identication function each time.

JY
--
Do not believe in miracles -- rely on them.

pgsql-novice by date:

Previous
From: Tair Sabirgaliev
Date:
Subject: Re: WARNING: pgstat wait timeout
Next
From: "Jean-Yves F. Barbier"
Date:
Subject: function error