Re: Patch for Improved Syntax Error Reporting

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Dave Page <dpage(at)vale-housing(dot)co(dot)uk>, Neil Padgett <npadgett(at)redhat(dot)com>, pgsql-patches(at)postgresql(dot)org
Subject: Re: Patch for Improved Syntax Error Reporting
Date: 2001-08-02 21:59:25
Message-ID: 200108022159.f72LxP024931@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

> Maybe I'm confused, but I don't think any of the proposals would require
> you to do any of those things. The only case that requires any
> significant new effort from the client app is where it reformats queries
> before sending them on to the parser ... but that is knowledge you've
> already built into the client, no? You just have to remember what you
> did so that you can map a backend error index into the original text.

That seems particularly hard. If you collapse spaces and stuff, it is
hard to figure out how it was originally formatted. I would just return
the collapsed version locating the error.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Dave Page 2001-08-02 21:59:57 RE: Patch for Improved Syntax Error Reporting
Previous Message Dave Page 2001-08-02 21:54:19 RE: Patch for Improved Syntax Error Reporting