Re: massive quotes?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Richard Hall" <rhall(at)micropat(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: massive quotes?
Date: 2003-09-16 19:50:11
Message-ID: 26628.1063741811@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Richard Hall" <rhall(at)micropat(dot)com> writes:
> 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.

Well, for one thing, that approach means that LANGUAGE is the *only*
terminating delimiter, which loses most of the benefit of the
here-document-inspired approach --- you can't quote material that
includes the word LANGUAGE, which among other things keeps you from
nesting quoted blocks. Also, this approach is useless for quoting
material in any context except CREATE FUNCTION. If we are going to
have a special lexer mechanism, it'd be good to make it useful for
creating quoted strings in all contexts.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua D. Drake 2003-09-16 22:22:02 Re: [BUGS] pg_dump/all doesn't output schemas correctly
Previous Message Andrew Dunstan 2003-09-16 19:42:47 Re: massive quotes?