R: Case sensitivity? - I understood... - Mailing list pgsql-general

From dfx
Subject R: Case sensitivity? - I understood...
Date
Msg-id 001401c60b47$c7c444b0$fc00a8c0@dfx
Whole thread Raw
Responses Re: R: Case sensitivity? - I understood...
List pgsql-general
Dear Sirs,
 
I understood that I can create objects with Upper and Lower case but I have to reference it with double quotes (INSERT INTO "Accoglienza" ("IdAccoglienza") VALUES (15);" is ok)
 
The new question is: can I avoid the automatic conversion to lower case in Postgres? (it exist some parameter to adjust?)
 
Best regards.
 
D. Formenton
-----Messaggio originale-----
Da: dfx [mailto:dfx@dfx.it]
Inviato: martedì 27 dicembre 2005 15:55
A: 'pgsql-general@postgresql.org'
Oggetto: Case sensitivity?

Dear Sirs,
 
I have a little problem:
 
- Contest: Server side: Linux Fedora core 4 with PostgreSQL v. 8.0
                Client side: both Linux Fedora core 4 with pgAdmin III v. 1.4 and/or Windows 2000 server vith pgAdmin III v. 1.4
 
- I Made a table:

CREATE TABLE "Accoglienza"
(
  "IdAccoglienza" int4 NOT NULL DEFAULT nextval('public."Accoglienza_IdAccoglienza_seq"'::text),
  "IdCongresso" int4 NOT NULL DEFAULT 0,
CONSTRAINT "Accoglienza_Pk" PRIMARY KEY ("IdAccoglienza")
)
WITHOUT OIDS;
 
if I try "INSERT INTO Accoglienza (IdCongresso) VALUES (23)"
 
I get an error "ERROR:  la relazione "accoglienza" non esiste" (The relation "accoglienza does not exist")
 
please note the change of the case of "A" to "a";
 
if I rename the table to "accoglienza" the error disappear, but arise another error on "IdAccoglienza" that change in "idaccoglienza". (i.e. all converted to lower case)
 
The same error arise with window client and linux client.
 
How I can set case-insensitive the system, or avoid the conversion to lower case?
 
It depends on setting of pgAdmin or on setting of the server?
 
Thank you.
 

 
 
 
 
 

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Case sensitivity?
Next
From: John McCawley
Date:
Subject: Re: Case sensitivity?