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
  [EMAIL PROTECTED]               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faqs/FAQ.html

Reply via email to