Re: can function arguments have the type tablename.columnname%TYPE? - Mailing list pgsql-general

From Tom Lane
Subject Re: can function arguments have the type tablename.columnname%TYPE?
Date
Msg-id 5883.1273587407@sss.pgh.pa.us
Whole thread Raw
In response to Re: can function arguments have the type tablename.columnname%TYPE?  (Guillaume Lelarge <guillaume@lelarge.info>)
Responses Re: can function arguments have the type tablename.columnname%TYPE?  (Guillaume Lelarge <guillaume@lelarge.info>)
Re: can function arguments have the type tablename.columnname%TYPE?  (Guillaume Lelarge <guillaume@lelarge.info>)
List pgsql-general
Guillaume Lelarge <guillaume@lelarge.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

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Workqueue performance
Next
From: Grzegorz Jaśkiewicz
Date:
Subject: Re: 8.3.7, 'cache lookup failed' for a table