Re: psql line number reporting from stdin

Peter Eisentraut <peter_e@gmx.net>

From: Peter Eisentraut <peter_e@gmx.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2011-12-10T17:35:30Z
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 →
  1. psql -f -

On fre, 2011-12-09 at 13:44 -0500, Tom Lane wrote:
> Peter Eisentraut <peter_e@gmx.net> writes:
> > The problem is, this breaks the regression tests, because first the
> > actual output changes, and second the line numbers get included, which
> > will create a mess every time you edit a test.  Not sure whether we can
> > work around that.  Ideas?
> 
> Ugh, that's pretty nearly a deal-breaker.  Would it be sane to have a
> command line switch the regression test driver could specify to prevent
> inclusion of this info?

Perhaps.  I was thinking we could use an environment variable when
running under pg_regress.  This could also help, e.g., ecpg.