Re: [PL/pgSQL] %TYPE and array declaration - patch
Wojciech Muła <wojciech_mula@poczta.onet.pl>
From: Wojciech Muła <wojciech_mula@poczta.onet.pl>
To: pgsql-hackers@postgresql.org
Date: 2011-08-20T19:12:21Z
Lists: pgsql-hackers
Attachments
- plpgsql_type_array.patch (text/x-patch)
- test.sql (text/x-sql)
On Sun, 7 Aug 2011 14:57:36 +0200 Wojciech Muła
<wojciech_mula@poczta.onet.pl> wrote:
> Hi all, does anybody work on this TODO item?
> http://wiki.postgresql.org/wiki/Todo#PL.2FpgSQL
>
> I didn't find any related posting/bug report.
Hi, I've prepared simple patch, please review.
Since exact array defintion isn't needed anywhere, code
detects only if %TYPE is followed by tokens matching
regexp ('[' ICONST ']')+. This information is used during
type construction.
w.