Re: Dollar quoting docs, round 1 - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: Dollar quoting docs, round 1
Date
Msg-id 200404281630.i3SGU6808529@candle.pha.pa.us
Whole thread Raw
In response to Re: Dollar quoting docs, round 1  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Dollar quoting docs, round 1
Re: Dollar quoting docs, round 1
List pgsql-patches
Peter Eisentraut wrote:
> David Fetter wrote:
> > Kind people,
> >
> > Please find attached a diff to the SGML docs that attempts to go over
> > the new dollar quoting feature.
>
> I think we should just use $$ in each case.  Otherwise it might look
> more complicated than before.

Agreed.  I was worried about dollar arguments in functions, e.g. $1:

    test=> select $$$1$$;
     ?column?
    ----------
     $1
    (1 row)

but that seems to be OK.  Is our only problem actual $$ in a function
body?  And there is no way of escaping that, right?  They have to choose
a different quote characters sequence.

--
  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: David Fetter
Date:
Subject: Re: Dollar quoting docs, round 1
Next
From: Bruce Momjian
Date:
Subject: Re: Dollar quoting docs, round 1