From: Szymon Guz <mabewlun@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Julius Tuskenis <julius@nsoft.lt>
Cc: pgsql-admin@postgresql.org
Subject: Re: insert in function writen in pgplsql
Date: Fri, 19 Mar 2010 20:16:15 +0100
Message-ID: <e4edc9361003191216o34904967o7865a1dab35a4d6c@mail.gmail.com> (raw)
In-Reply-To: <3701.1269024300@sss.pgh.pa.us>
References: <4BA37FF5.8060001@nsoft.lt>
<e4edc9361003191027j785b8ba1oc5d5e7e0f59fe076@mail.gmail.com>
<3701.1269024300@sss.pgh.pa.us>
2010/3/19 Tom Lane <tgl@sss.pgh.pa.us>
> Szymon Guz <mabewlun@gmail.com> writes:
> > You won't have to change the parameters in the function definition,
> instead
> > you can use the RENAME clause:
>
> > CREATE OR REPLACE FUNCTION add_user(user varchar(20), password
> varchar(20) )
> > RETURNS VOID AS $$
> > DECLARE
> > RENAME user TO x_user;
> > RENAME pa TO x_password;
> > BEGIN
>
> I wouldn't recommend relying on that, because RENAME has been removed in
> 9.0. I'm not convinced that it would have worked as desired in previous
> versions either.
>
> regards, tom lane
>
Is alias also removed?
I've checked that and it works in 8.4
regards,
szymon guz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: mabewlun@gmail.com, tgl@sss.pgh.pa.us, julius@nsoft.lt
Subject: Re: insert in function writen in pgplsql
In-Reply-To: <e4edc9361003191216o34904967o7865a1dab35a4d6c@mail.gmail.com>
References: <4BA37FF5.8060001@nsoft.lt> <e4edc9361003191027j785b8ba1oc5d5e7e0f59fe076@mail.gmail.com> <3701.1269024300@sss.pgh.pa.us> <e4edc9361003191216o34904967o7865a1dab35a4d6c@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox