Re: Per-function search_path => per-function GUC settings
От
Jeff Davis
Тема
Re: Per-function search_path => per-function GUC settings
Дата
Msg-id
1188756222.4144.56.camel@jdavis
Ответ на
Список
Дерево обсуждения
Per-function search_path => per-function GUC settings Tom Lane <tgl@sss.pgh.pa.us>
Re: Per-function search_path => per-function GUC settings Jeff Davis <pgsql@j-davis.com>
Re: Per-function search_path => per-function GUC settings Tom Lane <tgl@sss.pgh.pa.us>
Re: Per-function search_path => per-function GUC settings Jeff Davis <pgsql@j-davis.com>
Re: Per-function search_path => per-function GUC settings Decibel! <decibel@decibel.org>
Re: Per-function search_path => per-function GUC settings "Marko Kreen" <markokr@gmail.com>
Re: Per-function search_path => per-function GUC settings Tom Lane <tgl@sss.pgh.pa.us>
Re: Per-function search_path => per-function GUC settings "Marko Kreen" <markokr@gmail.com>
Re: Per-function search_path => per-function GUC settings Tom Lane <tgl@sss.pgh.pa.us>
Re: Per-function search_path => per-function GUC settings Jeff Davis <pgsql@j-davis.com>
Re: Per-function search_path => per-function GUC settings "Marko Kreen" <markokr@gmail.com>
Re: Per-function search_path => per-function GUC settings "Josh Tolley" <eggyknap@gmail.com>
Re: Per-function search_path => per-function GUC settings David Fetter <david@fetter.org>
Re: Per-function search_path => per-function GUC settings Tom Lane <tgl@sss.pgh.pa.us>
Re: Per-function search_path => per-function GUC settings "Brendan Jurd" <direvus@gmail.com>
Re: Per-function search_path => per-function GUC settings John DeSoi <desoi@pgedit.com>
Re: Per-function search_path => per-function GUC settings Tom Lane <tgl@sss.pgh.pa.us>
Re: Per-function search_path => per-function GUC settings Jeff Davis <pgsql@j-davis.com>
Re: Per-function search_path => per-function GUC settings Zdenek Kotala <Zdenek.Kotala@Sun.COM>
Re: Per-function search_path => per-function GUC settings Tom Lane <tgl@sss.pgh.pa.us>
Re: Per-function search_path => per-function GUC settings Peter Eisentraut <peter_e@gmx.net>
Re: Per-function search_path => per-function GUC settings Tom Lane <tgl@sss.pgh.pa.us>
Re: Per-function search_path => per-function GUC settings "Brendan Jurd" <direvus@gmail.com>
Re: Per-function search_path => per-function GUC settings Zdenek Kotala <Zdenek.Kotala@Sun.COM>
Re: Per-function search_path => per-function GUC settings Gregory Stark <stark@enterprisedb.com>
Re: Per-function search_path => per-function GUC settings Tom Lane <tgl@sss.pgh.pa.us>
Re: Per-function search_path => per-function GUC settings Gregory Stark <stark@enterprisedb.com>
Re: Per-function search_path => per-function GUC settings Tom Lane <tgl@sss.pgh.pa.us>
On Sat, 2007-09-01 at 15:03 -0400, Tom Lane wrote: > > ALTER FUNCTION func(args) SET var TO CURRENT; > > Hmmm ... that's certainly do-able, though I'm not sure how much it helps > the use-case you suggest. The search path still has to be set at the > top of the module script, no? It gives some better options for module authors and people installing those modules: 1. Set it at the top of the file, in one place 2. Connect as the user whose schema you want to install into, i.e.: $ psql my_db jdavis < module_install.sql 3. prepend the "SET search_path=foo" to the input of psql, i.e.: $ echo "SET search_path=foo;" | cat module_install.sql | psql my_db ..or $ psql my_db => SET search_path=foo; => \i module_install.sql Regards,Jeff Davis
В списке pgsql-hackers по дате отправления