Re: sintax error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: kevalshah <keval(dot)shah29(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: sintax error
Date: 2012-04-11 14:29:06
Message-ID: 22663.1334154546@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

kevalshah <keval(dot)shah29(at)gmail(dot)com> writes:
> At present whenever there is any error in syntax of fired query
> i get error message in terms of charcter "at char 53 "
> I also would like to have line no: from psql terminal..

Umm ... any reasonably recent version of psql will show syntax errors
like this:

regression=# select 1/ from foo;
ERROR: syntax error at or near "from"
LINE 1: select 1/ from foo;
^

If you're using something so old that it doesn't do that, the answer
is to update.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message yeison garcia 2012-04-11 17:42:37 Re: Pregunta acerca de la función COPY de POSTGRES
Previous Message kevalshah 2012-04-11 11:57:07 Re: sintax error