Re: massive quotes? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: massive quotes?
Date
Msg-id 1972.1063317005@sss.pgh.pa.us
Whole thread Raw
In response to Re: massive quotes?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: massive quotes?  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> So you are requiring the identical text to appear at the beginning and
> end of the quote, rather than a here document that would be:

>     <<END
>     ...
>     END

> or in your example:

>     $$END
>     ...
>     END

Yes, I was thinking of requiring the $$ to appear at both beginning and
end.  This is perhaps not critical, but it seems more symmetric that
way.  Also, we might even be able to get away with allowing SQL text to
resume on the same line as the terminator, for example
CREATE FUNCTION foo() RETURNS int AS $$FUNCTION... text here ...$$FUNCTION LANGUAGE plpgsql;

I would not want to risk that with a plain word as terminator, but $$
helps a lot to make it distinctive.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: massive quotes?
Next
From: Bruce Momjian
Date:
Subject: Re: massive quotes?