Re: Patch for Improved Syntax Error Reporting

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Neil Padgett <npadgett(at)redhat(dot)com>, Dave Page <dpage(at)vale-housing(dot)co(dot)uk>, "'Fernando Nasser'" <fnasser(at)cygnus(dot)com>, pgsql-patches(at)postgresql(dot)org
Subject: Re: Patch for Improved Syntax Error Reporting
Date: 2001-08-03 14:31:30
Message-ID: 20245.996849090@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> Seems we could easily have the backend return a string with three tokens
> before/after the syntax error, and that would be enough.

I strongly disagree. If the "three tokens" are something like ")))",
how's that going to help you figure out where you tanked your
parenthesization in a huge query with dozens of parentheses? See also
the points I made concerning errors masked by comment removal.

regards, tom lane

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2001-08-03 15:53:53 Re: Patch for Improved Syntax Error Reporting
Previous Message Bruce Momjian 2001-08-03 13:29:39 Re: ODBC Boolean handling