Re: How can this be legal syntax

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Asko Oja <ascoja(at)gmail(dot)com>, pgsql <pgsql-sql(at)postgresql(dot)org>
Subject: Re: How can this be legal syntax
Date: 2008-12-16 17:16:26
Message-ID: 3668.1229447786@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> Asko Oja escribi:
>> I was quite amazed to find that this piece of code actually works while
>> reviewing code.
>> I would prefer if it gave an error :)

> Yeah, me too.

As the plpgsql docs say, "The INTO clause can appear almost anywhere in
the SQL command". You can write some pretty ugly code if you choose to
:-(. Although the docs also threaten to tighten this up, it's been like
that for so long that I'm worried about how much user code we'll break
if we do.

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Judith Altamirano 2008-12-16 17:54:38 pg_clog/0202 Error
Previous Message Alvaro Herrera 2008-12-16 17:05:43 Re: How can this be legal syntax