dbTalk Databases Forums  

[BUGS] suggest: change alter user set search_path to raise notice not error

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] suggest: change alter user set search_path to raise notice not error in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Robert Grabowski
 
Posts: n/a

Default [BUGS] suggest: change alter user set search_path to raise notice not error - 11-08-2003 , 02:31 PM






Hi.

I can't set user's search_path to no exists schema by simple alter
user set ... . I get this message:

test=# CREATE USER test;
CREATE USER
test=# ALTER USER test SET search_path TO noexists;
ERROR: schema "noexists" does not exist


But this is possible by simple trick:
test=# CREATE SCHEMA noexists;
CREATE SCHEMA
test=# ALTER USER test SET search_path TO noexists;
ALTER USER
test=# DROP SCHEMA noexists;
DROP SCHEMA

and search_path for user test looks:
search_path
-------------
noexists
(1 row)

Some times set user's search_path before schema creation is
necessary. I suggest to change error at alter user to notice.

Robert Grabowski


---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] suggest: change alter user set search_path to raise notice not error - 11-08-2003 , 02:51 PM






Robert Grabowski <grabba (AT) env (DOT) pl> writes:
Quote:
Some times set user's search_path before schema creation is
necessary. I suggest to change error at alter user to notice.
I can't imagine why you think that's necessary.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.