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

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: [BUGS] BUG #6083: psql script line numbers incorrectly count \copy data
Дата
Msg-id CA+TgmoZGZ_tP0gU6G8Ke8WB-aJJzstuHQJ3nFL5oAm4x4s3ODQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [BUGS] BUG #6083: psql script line numbers incorrectly count \copy data  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Mon, Jul 4, 2011 at 12:02 PM, Tom Lane <tgl@sss.pgh.pa.us> 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?

I think this is pretty safe.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: Crash dumps
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Crash dumps