Re: massive quotes?

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Jan Wieck <JanWieck(at)Yahoo(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andreas Pflug <pgadmin(at)pse-consulting(dot)de>, Andrew Dunstan <andrew(at)dunslane(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: massive quotes?
Date: 2003-09-11 21:15:00
Message-ID: 200309112115.h8BLF0107954@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Jan Wieck wrote:
>
>
> Bruce Momjian wrote:
>
> > Sounds good. I just think keywords in general are weird to use for
> > quoting. We use "'" for quoting, so something similar like another
> > operator combination would be nice. I have never been fond of the
> > here-document approach, though I can see the value of doing
> > here-documents in here-documents, though if we make the open and close
> > of the quote string different <--, -->, we can still do that, no?
> >
>
> The beauty of here-documents is that you specify your closing tag on a
> per usage base and can vary that depending on the content you need to
> enclose. Keep in mind that this literal mechanism is not only used for
> PL/pgSQL, but for other languages like PL/Tcl and PL/Perl as well.
> Imagine the pain for a Tcl programmer if we'd go with curly braces!

Oh, non-SQL languages. OK, I agree, we need HERE documents, and I think
we all agree it has to be done in the lexer.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-09-11 21:15:22 Re: massive quotes?
Previous Message Tom Lane 2003-09-11 21:11:12 Re: Another small bug (pg_autovacuum)