Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WraHu-0007HQ-8X for pgsql-admin@arkaria.postgresql.org; Mon, 02 Jun 2014 22:01:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WraHt-0004pC-Nk for pgsql-admin@arkaria.postgresql.org; Mon, 02 Jun 2014 22:01:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WraHt-0004oV-0k for pgsql-admin@postgresql.org; Mon, 02 Jun 2014 22:01:01 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1WraHp-00028f-5T for pgsql-admin@postgresql.org; Mon, 02 Jun 2014 22:00:59 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1WraHl-0002YA-T0 for pgsql-admin@postgresql.org; Mon, 02 Jun 2014 15:00:53 -0700 Date: Mon, 2 Jun 2014 15:00:53 -0700 (PDT) From: David G Johnston To: pgsql-admin@postgresql.org Message-ID: <1401746452731-5805809.post@n5.nabble.com> In-Reply-To: References: Subject: Re: set search_path command MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Radovan Jablonovsky wrote > Hello, > > 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) > > Is this new behaviour intentional? Yes. It was felt the 9.1 behavior was too punishing. I do not recall the specifics at the moment but I believe 9.0- and 9.2+ simply ignore the missing schema while 9.1 has the obnoxious behavior that you see. Though if any version other than 9.1 and 9.3 matter you should confirm this for yourself. David J. -- View this message in context: http://postgresql.1045698.n5.nabble.com/set-search-path-command-tp5805807p5805809.html Sent from the PostgreSQL - admin mailing list archive at Nabble.com. -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin