Re: massive quotes? - Mailing list pgsql-hackers

From Richard Hall
Subject Re: massive quotes?
Date
Msg-id 3F674E92.6A1F4EE1@micropat.com
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>)
Re: massive quotes?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Andreas said

>>
Well we might also have something like
CREATE FUNCTION ... AS QUOTE('MyEndMarker')
....
all the stuff
... MyEndMarker LANGUAGE 'plpgsql';

This looks quite SQL-like and should be easily implementable. Anyway,
this Perl-like style or Tom's proof-of-concept dollar-quoting one, both
seem equally usable, now let's have someone roll a die to decide.
>>

But if THIS solution is implemented then
QUOTE('MyEndMarker')   and
MyEndMarker   become noise words and it seems the parser could just assume to handle everything between
CREATE FUNCTION ... AS   and
LANGUAGE   as the delimiters for a function definition.

But as that's so simple I must be missing something.

Rick



pgsql-hackers by date:

Previous
From: tachuelita
Date:
Subject: Compiling HP-UX 10.20
Next
From: "Merlin Moncure"
Date:
Subject: Re: observations about temporary tables and schemas