X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id ABA103A5020 for ; Sat, 22 Jan 2005 22:33:50 +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 14242-07 for ; Sat, 22 Jan 2005 22:33:38 +0000 (GMT) Received: from out012.verizon.net (out012pub.verizon.net [206.46.170.137]) by svr1.postgresql.org (Postfix) with ESMTP id E65D13A5005 for ; Sat, 22 Jan 2005 22:33:39 +0000 (GMT) Received: from jfradkin ([66.15.127.235]) by out012.verizon.net (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP id <20050122223338.KBOF10436.out012.verizon.net@jfradkin>; Sat, 22 Jan 2005 16:33:38 -0600 From: "Joel Fradkin" To: "'Tom Lane'" Cc: Subject: Re: editors with colum positioning for debugging? Date: Sat, 22 Jan 2005 17:36:41 -0500 Message-ID: <000001c500d2$d892d200$797ba8c0@jfradkin> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-reply-to: <26048.1106432484@sss.pgh.pa.us> X-Authentication-Info: Submitted using SMTP AUTH at out012.verizon.net from [66.15.127.235] at Sat, 22 Jan 2005 16:33:38 -0600 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=3.079 tagged_above=0 required=5 tests=AWL, MSGID_DOLLARS X-Spam-Level: *** X-Archive-Number: 200501/198 X-Sequence-Number: 19986 Very cool (I tried to get 8 on fedora, but think I was missing it somehow.). I also noticed if I run in EMS (course I need to buy it)it positions me on the error if I am in the editor not the builder. I am a little afraid of using 8 as it is brand new, and this will be on a production machine. I could use 8 for development and 7 for production I guess. Joel Fradkin Wazagua, Inc. 2520 Trailmate Dr Sarasota, Florida 34243 Tel. 941-753-7111 ext 305 jfradkin@wazagua.com www.wazagua.com Powered by Wazagua Providing you with the latest Web-based technology & advanced tools. C 2004. WAZAGUA, Inc. All rights reserved. WAZAGUA, Inc This email message is for the use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and delete and destroy all copies of the original message, including attachments. -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us] Sent: Saturday, January 22, 2005 5:21 PM To: Joel Fradkin Cc: pgsql-sql@postgresql.org Subject: Re: [SQL] editors with colum positioning for debugging? "Joel Fradkin" writes: > My question is I don't see an easy way to find an error. > Typical error text is syntax error at or near "trans" at character 825 > But determining character 825 is a little slow by hand. PG 8.0 produces more useful output. A trivial example: regression=# select regression-# 1/0 as a, regression-# 1/ as b, regression-# 1/2 as c; ERROR: syntax error at or near "as" at character 27 LINE 3: 1/ as b, ^ regression=# regards, tom lane