X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 18BDDD97A7; Sat, 1 Oct 2005 18:15:50 -0300 (ADT) 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 55778-01; Sat, 1 Oct 2005 21:15:47 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 1972CD97A5; Sat, 1 Oct 2005 18:15:47 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j91LFP4O028303; Sat, 1 Oct 2005 17:15:26 -0400 (EDT) To: "Roger Hand" Cc: "Jim C. Nasby" , "Christopher Kings-Lynne" , "R, Rajesh (STSD)" , pgsql-hackers@postgresql.org, pgsql-performance@postgresql.org Subject: Re: [HACKERS] Query in SQL statement In-reply-to: References: Comments: In-reply-to "Roger Hand" message dated "Sat, 01 Oct 2005 12:51:08 -0700" Date: Sat, 01 Oct 2005 17:15:25 -0400 Message-ID: <28302.1128201325@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200510/11 X-Sequence-Number: 14779 "Roger Hand" writes: >> I suggest ditching the CamelCase and going with underline_seperators. >> I'd also not use the bareword id, instead using bad_user_id. And I'd >> name the table bad_user. But that's just me. :) > I converted a db from MS SQL, where tables and fields were CamelCase, and > just lowercased the ddl to create the tables. > So table and fields names were all created in lowercase, but I didn't have to change > any of the application code: the SELECT statements worked fine with mixed case. Yeah, the only time this stuff really bites you is if the application sometimes double-quotes mixed-case names and sometimes doesn't. If it's consistent then you don't have an issue ... regards, tom lane