From: Andrew Dunstan <andrew@dunslane.net>
To: PostgreSQL-development <pgsql-hackers@postgresql.org>
Cc: Tim Bunce <Tim.Bunce@pobox.com>
Subject: plperl arginfo
Date: Thu, 28 Oct 2010 11:24:50 -0400
Message-ID: <4CC995C2.3000704@dunslane.net> (raw)
While we were discussing allowing generic record type arguments to
plperl functions, Tom suggested that we should expose the type
information about the record members to plperl. I think if we do that we
should probably expand it somewhat to all arguments, so that for
non-trigger functions, we'd have $_ARG_INFO while could look something
like this:
{
names => ['arg1', undef, 'arg3' ] , # no name was supplied for arg2
modes => ['in', 'in', 'in' ], # do we support anything other
than IN ?
types => ['integer', 'text', { name => 'somecomposite', fields
=> [ 'field1', 'field2' ], types => ['date', 'numeric' ] } ],
}
Maybe we should also pass in type Oid info, too.
I don't think this would be terribly difficult to do.
thoughts?
cheers
andrew
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 using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: andrew@dunslane.net, Tim.Bunce@pobox.com
Subject: Re: plperl arginfo
In-Reply-To: <4CC995C2.3000704@dunslane.net>
* 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