Re: PL/pgSQL RENAME functionality in TODOs

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: imad <immaad(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: PL/pgSQL RENAME functionality in TODOs
Date: 2007-01-30 21:34:17
Message-ID: 9845.1170192857@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

imad <immaad(at)gmail(dot)com> writes:
> "Fix RENAME to work on variables other than OLD/NEW"
> I can rename just any variable declared in a PL block apart from
> OLD/NEW. Is the TODOs list out of sync or I am missing the point here?

Really? It looks pretty broken to me still:

regression=# create function foo() returns int as $$
regression$# declare
regression$# x int := 1;
regression$# rename x to y;
regression$# begin
regression$# return y;
regression$# end;$$ language plpgsql;
ERROR: syntax error at or near "x"
LINE 4: rename x to y;
^

See old discussion here:
http://archives.postgresql.org/pgsql-hackers/2002-03/msg00591.php

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2007-01-30 21:48:46 Re: Talks for OSCON? Only 5 days left!
Previous Message Nikolay Samokhvalov 2007-01-30 21:24:43 Re: Modifying and solidifying contrib