Re: can function arguments have the type tablename.columnname%TYPE?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Cc: Dino Vliet <dino_vliet(at)yahoo(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: can function arguments have the type tablename.columnname%TYPE?
Date: 2010-05-11 14:16:47
Message-ID: 5883.1273587407@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Guillaume Lelarge <guillaume(at)lelarge(dot)info> writes:
> Le 11/05/2010 10:28, Dino Vliet a crit :
>> I'm writing a plpgsql function in pgadminIII and want to know if the arguments can have the following type:
>>
>> tablename.columnname%TYPE

> No, this construct is only available *inside* a PL/pgsql function body.

That's incorrect: you can use it in a function declaration too.

Not sure what the OP's problem is exactly --- it might be specific to
pgAdmin.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Grzegorz Jaśkiewicz 2010-05-11 14:19:22 Re: 8.3.7, 'cache lookup failed' for a table
Previous Message Tom Lane 2010-05-11 14:13:27 Re: Workqueue performance