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:28:52 |
Message-ID: | 200309112128.h8BLSqt09400@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Jan Wieck wrote:
> >> 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.
> >
>
> Not only. psql by default sends the edit buffer when it encounters the
> ";". You don't want that to happen inside of the here document. So it
> has to duplicate that logic.
Yep, good point. It already understands quoting and comments, so it
will have to understand this too.
--
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
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2003-09-11 21:37:26 | Re: massive quotes? |
Previous Message | Tom Lane | 2003-09-11 21:28:34 | Re: massive quotes? |