pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedsearch_path update weirdness
3+ messages / 2 participants
[nested] [flat]
* search_path update weirdness
@ 2013-07-08 12:40 Colin S <colin_sloss@hotmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Colin S @ 2013-07-08 12:40 UTC (permalink / raw)
To: pgsql-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 =
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: search_path update weirdness
@ 2013-07-08 12:46 Szymon Guz <mabewlun@gmail.com>
parent: Colin S <colin_sloss@hotmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Szymon Guz @ 2013-07-08 12:46 UTC (permalink / raw)
To: Colin S <colin_sloss@hotmail.com>; +Cc: pgsql-admin
On 8 July 2013 14:40, Colin S <colin_sloss@hotmail.com> wrote:
> 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, schem
> prod_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 ROLE
> prod_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 ROLE
> prod_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
>
Hi Colin,
you should rather set the path with:
alter user postgres set search_path = public, schema1, schema2, schema3;
szymon
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: search_path update weirdness
@ 2013-07-08 12:57 Colin S <colin_sloss@hotmail.com>
parent: Szymon Guz <mabewlun@gmail.com>
0 siblings, 0 replies; 3+ messages in thread
From: Colin S @ 2013-07-08 12:57 UTC (permalink / raw)
To: Szymon Guz <mabewlun@gmail.com>; +Cc: pgsql-admin
Date: Mon, 8 Jul 2013 14:46:29 +0200
Subject: Re: [ADMIN] search_path update weirdness
From: mabewlun@gmail.com
To: colin_sloss@hotmail.com
CC: pgsql-admin@postgresql.org
Hi szymon,
My mistake. I chock it up to another manic monday.
Thanks!
Colin
On 8 July 2013 14:40, Colin S <colin_sloss@hotmail.com> wrote:
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, schem
prod_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
Hi Colin,you should rather set the path with:
alter user postgres set search_path = public, schema1, schema2, schema3;
szymon =
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2013-07-08 12:57 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-07-08 12:40 search_path update weirdness Colin S <colin_sloss@hotmail.com>
2013-07-08 12:46 ` Szymon Guz <mabewlun@gmail.com>
2013-07-08 12:57 ` Colin S <colin_sloss@hotmail.com>
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