Re: psql line number reporting from stdin
Gurjeet Singh <singh.gurjeet@gmail.com>
From: Gurjeet Singh <singh.gurjeet@gmail.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Peter Eisentraut <peter_e@gmx.net>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2011-11-28T17:20:58Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
psql -f -
- b291c0fba83a 9.0.0 cited
On Mon, Nov 28, 2011 at 8:55 AM, Robert Haas <robertmhaas@gmail.com> wrote: > On Mon, Nov 28, 2011 at 8:49 AM, Gurjeet Singh <singh.gurjeet@gmail.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). Regards, -- Gurjeet Singh EnterpriseDB Corporation The Enterprise PostgreSQL Company