Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: plpgsql: support identif%TYPE[], (from ToDo)


  • From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
  • To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
  • Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
  • Subject: Re: plpgsql: support identif%TYPE[], (from ToDo)
  • Date: Tue, 28 Jul 2009 23:11:13 +0200
  • Message-id: <20090728211113.GB22289@svana.org> <text/plain>

On Tue, Jul 28, 2009 at 10:53:08PM +0200, Pavel Stehule wrote:
> Hello
> 
> I would to solve some points from ToDo. I began with TYPE [] support.
> I thing, so this should be relative simple, but there are one issue.

<snip>

> My first idea is using word element:
> 
> create or replace function x(a int[])
> ...
> declare f a%element;
> begin
> ...

I would have thought:

declare f a[0]%type;

as in: the type of a[0]. Perhaps a[]%type but that seems less natural.

Have a nice day,
-- 
Martijn van Oosterhout   <kleptog(at)svana(dot)org>   http://svana.org/kleptog/
> Please line up in a tree and maintain the heap invariant while 
> boarding. Thank you for flying nlogn airlines.

Attachment: signature.asc
Description: Digital signature



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group