X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4902E32B344 for ; Tue, 12 Oct 2004 15:19:32 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 32184-01 for ; Tue, 12 Oct 2004 14:19:21 +0000 (GMT) Received: from mail.cs.intern (webmail.cs.nl [212.123.254.3]) by svr1.postgresql.org (Postfix) with ESMTP id 1ADEF32ADDB for ; Tue, 12 Oct 2004 15:19:23 +0100 (BST) Received: from [212.123.255.240] by mail.cs.nl (GMS 8.00.3078/NU7172.01.a2f42331) with ESMTP id pigrlbaa for pgsql-admin@postgresql.org; Tue, 12 Oct 2004 16:19:16 +0200 Message-Id: <6.1.2.0.0.20041012155623.025459c8@localhost> X-Sender: alwin/mail.cs.nl@localhost X-Mailer: QUALCOMM Windows Eudora Version 6.1.2.0 Date: Tue, 12 Oct 2004 16:18:01 +0200 To: pgsql-admin@postgresql.org From: alwin Subject: case insensitive table names Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/166 X-Sequence-Number: 15159 Dear mailing list, I'm trying to convert a MsSQL database to a Postgres database, with DTS i can convert the data between the databases. DTS creates case sensitive tables (using quotes), exactly like i want it to be. So far so good. But the current code uses queries without quotes, like select * from Table; and not select * from "Table";. The Table gets converted to lowercase and then compared (case sensitive) against the tables in the database. This means i have to convert all the table names to lowercase, losing a lot of readability, or i put quotes around all the table names in the current queries causing also a lot of possible problems and unneeded changes. Is there an easier fix for this? Does the SQL92/SQL3/SQL2003 specify unquoted table names to be case-insensitive or does it say it needs to be converted to lowercase? It would be great having a global flag to enable or disable case sensitive compares everywhere. Thanks. Alwin