Skip site navigation (1) Skip section navigation (2)

Re: psql line number reporting from stdin

From: Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: psql line number reporting from stdin
Date: 2011-11-28 17:20:58
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
On Mon, Nov 28, 2011 at 8:55 AM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:

> On Mon, Nov 28, 2011 at 8:49 AM, Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)com>
> wrote:
> > Naysayers can always make a case

Should've added that I'm not one of them :)

+1 from me on the improvement.

> for backwards-compatibility, or not
> > breaking the scripts written with the existing behaviour in mind.
> I'm having a hard time imagining how this could break anything.  What
> scenario did you have in mind?

Probably parsing the lines that start with 'ERROR' to report that there
were errors in the script.

> > Do our
> > docs have anything to say about scripts executed from stdin?
> If they do, we can always update them.

At the cost of breaking existing scripts (which I am not sure is the case).

Gurjeet Singh
EnterpriseDB Corporation
The Enterprise PostgreSQL Company

In response to

pgsql-hackers by date

Next:From: David E. WheelerDate: 2011-11-28 17:37:11
Subject: Re: Patch: Perl xsubpp
Previous:From: Kohei KaiGaiDate: 2011-11-28 17:00:45
Subject: Re: Prep object creation hooks, and related sepgsql updates

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group