pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: kevalshah <keval.shah29@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: sintax error
Date: Wed, 11 Apr 2012 10:29:06 -0400
Message-ID: <22663.1334154546@sss.pgh.pa.us> (raw)
In-Reply-To: <1334145427988-5632590.post@n5.nabble.com>
References: <4B7E4331.1050308@gmail.com>
	<4B7E6E47.5020503@archonet.com>
	<1334145427988-5632590.post@n5.nabble.com>

kevalshah <keval.shah29@gmail.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



view thread (5+ messages)

Message-ID: <22663.1334154546@sss.pgh.pa.us>
Permalink:  ../22663.1334154546@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22663.1334154546@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, keval.shah29@gmail.com
  Subject: Re: sintax error
  In-Reply-To: <22663.1334154546@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox