Re: Modifying search_path in a stored procedure - Mailing list pgsql-general

From Michael Fuhr
Subject Re: Modifying search_path in a stored procedure
Date
Msg-id 20050111215554.GA43087@winnie.fuhr.org
Whole thread Raw
In response to Modifying search_path in a stored procedure  (Eric Brown <eric.brown@propel.com>)
List pgsql-general
On Tue, Jan 11, 2005 at 01:19:55PM -0800, Eric Brown wrote:

> I know I can SET the schema search_path in a stored procedure, but is
> there any way to retrieve it first so that I can get the current value
> and manipulate that rather than just replace it?

See the current_setting() and set_config() functions in the "Functions
and Operators" chapter of the documentation.  In 7.3 and 7.4 they're
in the "Miscellaneous Functions" section; in 8.0 they're in "System
Administration Functions."

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

pgsql-general by date:

Previous
From: Eric Brown
Date:
Subject: Modifying search_path in a stored procedure
Next
From: Tom Lane
Date:
Subject: Re: Modifying search_path in a stored procedure