search_path update weirdness

From: Colin S <colin_sloss(at)hotmail(dot)com>
To: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: search_path update weirdness
Date: 2013-07-08 12:40:20
Message-ID: DUB118-W138D1B502BC175B7224CE887780@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Szymon Guz 2013-07-08 12:46:29 Re: search_path update weirdness
Previous Message bricklen 2013-07-07 23:29:34 PG wiki updated with query to show unindexed foreign keys