From: David Fetter <david@fetter.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Steve Haslam <araqnid@googlemail.com>
Cc: pgsql-bugs@postgresql.org
Cc: pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] BUG #6083: psql script line numbers incorrectly count \copy data
Date: Mon, 4 Jul 2011 12:01:16 -0700
Message-ID: <20110704190116.GE29446@fetter.org> (raw)
In-Reply-To: <2822.1309795332@sss.pgh.pa.us>
References: <201106291338.p5TDcPTZ012367@wwwmaster.postgresql.org>
<2822.1309795332@sss.pgh.pa.us>
On Mon, Jul 04, 2011 at 12:02:12PM -0400, Tom Lane wrote:
> "Steve Haslam" <araqnid@googlemail.com> writes:
> > ... Apparently, the data read from \copy is incrementing the
> > script line number counter?
>
> Yeah, so it is. That is correct behavior for COPY FROM STDIN, but
> not so much for copying from a separate file.
>
> The attached patch seems like an appropriate fix. However, I'm
> unsure whether to apply it to released branches ... does anyone
> think this might break somebody's application?
No.
Cheers,
David.
--
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david.fetter@gmail.com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics
Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: david@fetter.org, tgl@sss.pgh.pa.us, araqnid@googlemail.com, pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] BUG #6083: psql script line numbers incorrectly count \copy data
In-Reply-To: <20110704190116.GE29446@fetter.org>
References: <201106291338.p5TDcPTZ012367@wwwmaster.postgresql.org> <2822.1309795332@sss.pgh.pa.us> <20110704190116.GE29446@fetter.org>
* 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