]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Backpatch dbmirror fix for escape handling.
authorBruce Momjian <bruce@momjian.us>
Thu, 6 Jul 2006 01:57:34 +0000 (01:57 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 6 Jul 2006 01:57:34 +0000 (01:57 +0000)
commitfe204535a736e3965eab4f3e64acc19222cb1e4c
treee44aa55361ebea445ef64af80ab97225693e26bd
parentbf1cd364b6de8af7e727ea7832be17d32f4cca89
Backpatch dbmirror fix for escape handling.

> Upstream confirmed my reply in the last mail in [1]: the complete
> escaping logic in DBMirror.pl is seriously screwew.
>
> [1] http://archives.postgresql.org/pgsql-bugs/2006-06/msg00065.php

I finally found some time to debug this, and I think I found a better
patch than the one you proposed. Mine is still hackish and is still a
workaround around a proper quoting solution, but at least it repairs
the parsing without introducing the \' quoting again.

I consider this a band-aid patch to fix the recent security update.
PostgreSQL gurus, would you consider applying this until a better
solution is found for DBMirror.pl?

Olivier, can you please confirm that the patch works for you, too?

Backpatched to 8.0.X.

Martin Pitt
contrib/dbmirror/DBMirror.pl