X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D33C8563A8 for ; Mon, 14 Mar 2005 07:25:36 +0000 (GMT) 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 06510-09 for ; Mon, 14 Mar 2005 07:25:27 +0000 (GMT) Received: from pws.com.au (mail.pws.com.au [210.23.138.139]) by svr1.postgresql.org (Postfix) with SMTP id 40843563A2 for ; Mon, 14 Mar 2005 07:25:24 +0000 (GMT) Received: (qmail 23669 invoked from network); 14 Mar 2005 07:25:24 -0000 Received: from unknown (HELO wizzard.pws.com.au) (russell@pws.com.au@138.217.54.70) by mail.pws.com.au with SMTP; 14 Mar 2005 07:25:24 -0000 From: Russell Smith To: Gourish Singbal Subject: Re: column name is "LIMIT" Date: Mon, 14 Mar 2005 18:25:22 +1100 User-Agent: KMail/1.7 Cc: pgsql-performance@postgresql.org References: <674d1f8a0503132314754df153@mail.gmail.com> In-Reply-To: <674d1f8a0503132314754df153@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200503141825.22827.mr-russ@pws.com.au> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.005 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/246 X-Sequence-Number: 10951 On Mon, 14 Mar 2005 06:14 pm, Gourish Singbal wrote: > Guys, > > I am having a problem firing queries on one of the tables which is > having "limit" as the column name. > > If a run an insert/select/update command on that table i get the below error. > > ERROR: syntax error at or near "limit" at character 71 select "limit" from limit_table WHERE "limit" < 50 LIMIT 2; You need to quote the field name, and make sure the case is correct. > > Any Help would be realyl great to solve the problem. > > postgresql 7.4.5 and linux OS > You should probably upgrade to 7.4.7 Regards Russell Smith.