From: Colin S <colin_sloss@hotmail.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: search_path update weirdness
Date: Mon, 8 Jul 2013 12:40:20 +0000
Message-ID: <DUB118-W138D1B502BC175B7224CE887780@phx.gbl> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
Hello,
I made a bad update to search_path, which basically had line returns:
prod_candidate=# alter user postgres set search_path to 'search_path=public, schemprod_candidate'# a1, schema2, schema3'prod_candidate-# ;ALTER ROLE
And now, I can't get it to insert correctly again, there always seems to be some backslashes stuck in there:
prod_candidate=# alter user postgres set search_path to '';ALTER ROLEprod_candidate=# select usename, useconfig from pg_user; usename | useconfig ----------------+-------------------------------------------- postgres | {"search_path=\"\""} user2 | {"search_path=public, schema1, schema2, schema3"} user3 | {"search_path=public, schema1, schema2, schema3"}(3 rows)
prod_candidate=# alter user postgres set search_path to 'operator, gameplay, common';ALTER ROLEprod_candidate=# select usename, useconfig from pg_user; usename | useconfig ----------------+------------------------------------------------ postgres | {"search_path=\"public, schema1, schema2, schema3\""} user2 | {"search_path=public, schema1, schema2, schema3"} user3 | {"search_path=public, schema1, schema2, schema3"}(3 rows)
Regards,
Colin =
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: colin_sloss@hotmail.com
Subject: Re: search_path update weirdness
In-Reply-To: <DUB118-W138D1B502BC175B7224CE887780@phx.gbl>
References: <DUB118-W138D1B502BC175B7224CE887780@phx.gbl>
* 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