Re: [BUGS] BUG #6083: psql script line numbers incorrectly count \copy data

2011-07-05 Thread Robert Haas
On Mon, Jul 4, 2011 at 12:02 PM, Tom Lane wrote: > "Steve Haslam" 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 a

Re: [HACKERS] [BUGS] BUG #6083: psql script line numbers incorrectly count \copy data

2011-07-04 Thread David Fetter
On Mon, Jul 04, 2011 at 12:02:12PM -0400, Tom Lane wrote: > "Steve Haslam" 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

Re: [BUGS] BUG #6083: psql script line numbers incorrectly count \copy data

2011-07-04 Thread Tom Lane
"Steve Haslam" 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 uns

[BUGS] BUG #6083: psql script line numbers incorrectly count \copy data

2011-06-29 Thread Steve Haslam
The following bug has been logged online: Bug reference: 6083 Logged by: Steve Haslam Email address: araq...@googlemail.com PostgreSQL version: 9.0.4 Operating system: Debian GNU/Linux (amd64) Description:psql script line numbers incorrectly count \copy data Details: