dbTalk Databases Forums  

[BUGS] BUG #2742: psql -c is not case sensitive

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


Discuss [BUGS] BUG #2742: psql -c is not case sensitive in the mailing.database.pgsql-bugs forum.



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

Default [BUGS] BUG #2742: psql -c is not case sensitive - 11-10-2006 , 12:17 AM







The following bug has been logged online:

Bug reference: 2742
Logged by:
Email address: chad.wilson (AT) ngc (DOT) com
PostgreSQL version: 8.0rc5
Operating system: Linux Red Hat 8
Description: psql -c is not case sensitive
Details:

psql -c is not case sensitive...

If a schema is created with the command
psql -d dbname -c "CREATE SCHEMA "SCHEMA_name"
and is executed at the command line, then a schema is created for dbname
with the name schema_name.

If a schema is created with the commands
psql dbname
CREATE SCHEMA "SCHEMA_name";
and is executed from the psql command, then a schema is created for dbname
with the name SCHEMA_name.

Does this appear to be a bug?

---------------------------(end of broadcast)---------------------------
TIP 1: 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
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] BUG #2742: psql -c is not case sensitive - 11-10-2006 , 12:54 AM






"" <chad.wilson (AT) ngc (DOT) com> writes:
Quote:
If a schema is created with the command
psql -d dbname -c "CREATE SCHEMA "SCHEMA_name"
and is executed at the command line, then a schema is created for dbname
with the name schema_name.
I think you need to reflect on the properties of the shell's quoting
conventions --- that will come through to psql and hence the backend
with no quotes.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster


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.