Thread: Proposed TODO: add support for "any" for PL/PythonU and PL/Perl
Hackers, I'd like to add the following todo items to the TODO list: PL/Python: * add support for anyelement and anyarray to PL/Python * add support for VARIADIC "ANY" to PL/Python PL/Perl: * add support for anyelement and anyarray to PL/Perl * add support for VARIADIC "ANY" to PL/Perl The reason for this is that both Python and Perl are loosely typed languages, and deal with variables as polymorphic. Mapping Postgres polymorphic parameters to functions in these PLs couldn't be more natural. I know from my part that support for VARIADIC "ANY" in PL/Python would save me a bunch of shell function writing. I don't personally intend to hack these out, but they seem like good things to put on the TODO list as good tasks for new hackers (and maybe GSOC students) to take on. -- Josh Berkus PostgreSQL Experts Inc. http://pgexperts.com
On Tue, May 14, 2013 at 2:24 PM, Josh Berkus <josh@agliodbs.com> wrote: > Hackers, > > I'd like to add the following todo items to the TODO list: > > PL/Python: > * add support for anyelement and anyarray to PL/Python > * add support for VARIADIC "ANY" to PL/Python > > PL/Perl: > * add support for anyelement and anyarray to PL/Perl > * add support for VARIADIC "ANY" to PL/Perl > > The reason for this is that both Python and Perl are loosely typed > languages, and deal with variables as polymorphic. Mapping Postgres > polymorphic parameters to functions in these PLs couldn't be more > natural. I know from my part that support for VARIADIC "ANY" in > PL/Python would save me a bunch of shell function writing. > > I don't personally intend to hack these out, but they seem like good > things to put on the TODO list as good tasks for new hackers (and maybe > GSOC students) to take on. +1. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
+1 2013/5/15 Robert Haas <robertmhaas@gmail.com>: > On Tue, May 14, 2013 at 2:24 PM, Josh Berkus <josh@agliodbs.com> wrote: >> Hackers, >> >> I'd like to add the following todo items to the TODO list: >> >> PL/Python: >> * add support for anyelement and anyarray to PL/Python >> * add support for VARIADIC "ANY" to PL/Python >> >> PL/Perl: >> * add support for anyelement and anyarray to PL/Perl >> * add support for VARIADIC "ANY" to PL/Perl >> >> The reason for this is that both Python and Perl are loosely typed >> languages, and deal with variables as polymorphic. Mapping Postgres >> polymorphic parameters to functions in these PLs couldn't be more >> natural. I know from my part that support for VARIADIC "ANY" in >> PL/Python would save me a bunch of shell function writing. >> >> I don't personally intend to hack these out, but they seem like good >> things to put on the TODO list as good tasks for new hackers (and maybe >> GSOC students) to take on. > > +1. > > -- > Robert Haas > EnterpriseDB: http://www.enterprisedb.com > The Enterprise PostgreSQL Company > > > -- > Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-hackers
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Il 14/05/2013 20:24, Josh Berkus ha scritto: > Hackers, > > I'd like to add the following todo items to the TODO list: > > PL/Python: > * add support for anyelement and anyarray to PL/Python > * add support for VARIADIC "ANY" to PL/Python > > PL/Perl: > * add support for anyelement and anyarray to PL/Perl > * add support for VARIADIC "ANY" to PL/Perl > > The reason for this is that both Python and Perl are loosely typed > languages, I don't know about Perl, but, to be precise, Python is not a loosely typed language. It is a strongly typed dynamic language. > [...] Regards Manlio Perillo -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlGTq1sACgkQscQJ24LbaUQdogCeNd1Boj/w2UaQIvDuiSU41Lrn UnoAn3vuehDS2+woqVyahwktm5sYCtGG =mwuk -----END PGP SIGNATURE-----