Re: pg_restore recognizing $-quotes - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: pg_restore recognizing $-quotes
Date
Msg-id 200408180344.i7I3i6N08653@candle.pha.pa.us
Whole thread Raw
In response to pg_restore recognizing $-quotes  (Philip Warner <pjw@rhyme.com.au>)
Responses Re: pg_restore recognizing $-quotes
Re: pg_restore recognizing $-quotes
List pgsql-patches
This is quite a large patch, but we do need a solution to this problem.
Should it be applied?

---------------------------------------------------------------------------

Philip Warner wrote:
>
> Not sure if this is the desired approach, but since it works, I thought I'd
> send it.
>
> This patch allows pg_restore to recognize $-quotes in SQL queries. It will
> treat any unquoted string that starts with a $ and has no preceding
> identifier chars as a potential $-quote tag, it then makes sure that the
> tag chars are valid. If so, it processes the $-quote.
>
> Tested against local DBs and regression DB.
>
>
>
> ----------------------------------------------------------------
> 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       |/

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
>                http://archives.postgresql.org

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: PL/Perl document patch
Next
From: Oliver Jowett
Date:
Subject: Re: Add GUC_REPORT to server_encoding, integer_datetimes