From: Vibhor Kumar <vibhor.aim@gmail.com>
To: Radovan Jablonovsky <radovan.jablonovsky@replicon.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: set search_path command
Date: Mon, 2 Jun 2014 17:58:42 -0400
Message-ID: <57498BFA3C404D6699D939A7B6A1B602@gmail.com> (raw)
In-Reply-To: <CAJYcdTuW815KJ6enWLxNY__ZD5HJOuThmDhJT4i4b541TFL8=Q@mail.gmail.com>
References: <CAJYcdTuW815KJ6enWLxNY__ZD5HJOuThmDhJT4i4b541TFL8=Q@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
On Monday, June 2, 2014 at 5:50 PM, Radovan Jablonovsky wrote:
> When we compared behaviour of "set search_path" between 9.1.9 and 9.3.4, there is difference. On 9.1.9 the command "set search_path to schema1,public" checks if the schema exists and if not it return error. Example:
> set search_path to "schema123",public;
> ERROR: invalid value for parameter "search_path": "schema123, public"
> DETAIL: schema "schema123" does not exist
>
>
> On 9.3.4 the same command silently ignore the schema does not exists. Example:
> set search_path to "schema123",public;
> SET
>
> select * from pg_namespace where nspname ilike '%schema123%';
> nspname | nspowner | nspacl
> ---------+----------+--------
> (0 rows)
I think so. It was fixed in 9.2.
E.14.3.1.7. Server Settings
Silently ignore nonexistent schemas specified in search_path (Tom Lane) :
This makes it more convenient to use generic path settings, which might include some schemas that don't exist in all databases.
Thanks & Regards,
Vibhor Kumar
Blogs:http://vibhork.blogspot.comhttp://vibhorkumar.wordpress.com
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: vibhor.aim@gmail.com, radovan.jablonovsky@replicon.com
Subject: Re: set search_path command
In-Reply-To: <57498BFA3C404D6699D939A7B6A1B602@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox