Re: Dollar Quoting doc patch--resend. - Mailing list pgsql-patches

From Peter Eisentraut
Subject Re: Dollar Quoting doc patch--resend.
Date
Msg-id 200405072106.15384.peter_e@gmx.net
Whole thread Raw
In response to Re: Dollar Quoting doc patch--resend.  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-patches
Bruce Momjian wrote:
> Agreed we have to show both. The question is whether we should prefer
> single quotes and switch to $$ only when a single quote exists in the
> body, or use $$ in most cases.  Of course CREATE FUNCTION should show
> that both are possible, as well as $tag$.

My take: If there are no single quotes inside, use '.  If there are
single quotes inside, use $$.  If there is $$ inside, use $x$ (or some
other short sequence, not the function name).  This conveys the
decision process we made when we designed this feature.  If there are
several related examples in one section, use the same method for all.


pgsql-patches by date:

Previous
From: Rod Taylor
Date:
Subject: Re: NEXT VALUE FOR...
Next
From: "Thomas Hallgren"
Date:
Subject: Patch for Makefile.shlib