pg_restore (libpq? parser?) bug in 8

Поиск
Список
Период
Сортировка
От Philip Warner
Тема pg_restore (libpq? parser?) bug in 8
Дата
Msg-id 6.1.1.1.0.20040812020654.05ef1690@203.8.195.10
обсуждение исходный текст
Ответы Re: pg_restore (libpq? parser?) bug in 8  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: pg_restore (libpq? parser?) bug in 8  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
>         CREATE FUNCTION xxx() RETURNS integer
>             AS $$ begin return 1;
>2004-08-12 01:38:48 EST<zzz,birds>: ERROR:  unterminated dollar-quoted 
>string at or near "$$ begin return 1;" at character 115


Just realized the problem; pg_restore uses a trivial parser to work out 
when statements start/end. It knows about quotes but not about dollar-quotes.



----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.B.N. 75 008 659 498)          |          /(@)   ______---_
Tel: (+61) 0500 83 82 81         |                 _________  \
Fax: (+61) 03 5330 3172          |                 ___________ |
Http://www.rhyme.com.au          |                /           \|                                 |    --________--
PGP key available upon request,  |  /
and from pgp.mit.edu:11371       |/  



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

Предыдущее
От: Andreas Pflug
Дата:
Сообщение: Re: fsync, fdatasync, open_sync, and open_datasync, --
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Does psql use nested transactions?