X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 340649DC9A8 for ; Tue, 27 Dec 2005 11:14:12 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 27707-09 for ; Tue, 27 Dec 2005 11:14:16 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.204]) by postgresql.org (Postfix) with ESMTP id CD4DD9DC999 for ; Tue, 27 Dec 2005 11:14:09 -0400 (AST) Received: by wproxy.gmail.com with SMTP id i28so338391wra for ; Tue, 27 Dec 2005 07:14:14 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nv3pS8nFWM6+xydaIJXOAGqJB3vP3VXAFkWY5S6C/ew1LGKm6whpWKjg2BPJvkohKmNiy2eX6u0TolHO3wTvypCbXmo0C0ISRChb6b72bEKU4rBvzi1StrrsWeTlSPwX/atF373PNEfzEZZ1V7zvozq5p282e+1iCfJGeeI4Ay0= Received: by 10.54.71.5 with SMTP id t5mr7314087wra; Tue, 27 Dec 2005 07:14:14 -0800 (PST) Received: by 10.54.92.14 with HTTP; Tue, 27 Dec 2005 07:14:14 -0800 (PST) Message-ID: Date: Tue, 27 Dec 2005 10:14:14 -0500 From: Jaime Casanova To: dfx@dfx.it Subject: Re: Case sensitivity? Cc: pgsql-general@postgresql.org In-Reply-To: <000501c60b40$ea790510$fc00a8c0@dfx> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <000501c60b40$ea790510$fc00a8c0@dfx> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.883 required=5 tests=[AWL=-0.729, DEAR_SOMETHING=1.612] X-Spam-Score: 0.883 X-Spam-Level: X-Archive-Number: 200512/1176 X-Sequence-Number: 88739 On 12/27/05, dfx wrote: > 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 relat= ion > "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. al= l > 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 low= er > case? > the server always will transfor the names of the object to lower case unless you surround them with quotes ("") so if you say CREATE TABLE TablE --> it will create a table called table and if you say CREATE TABLE "TablE" --> it will create a table called "TablE" and in this case, if you try to select from table it will give an error... it will give you an error even if you type TablE you have to type "TablE" or always live with lower case object names... > It depends on setting of pgAdmin or on setting of the server? > > Thank you. > > -- Atentamente, Jaime Casanova (DBA: DataBase Aniquilator ;)