With plperl.on_init allowing the loading of modules, might there be some
merit (and little cost) in allowing the same style of function-mapping
as with C functions?

CREATE FUNCTION add_one(integer) RETURNS integer
AS 'DIRECTORY/funcs', 'add_one'
LANGUAGE C STRICT;

CREATE FUNCTION add_one(integer) RETURNS integer
AS 'My::Package', 'add_one'
LANGUAGE plperl STRICT;

--
Richard Huxton
Archonet Ltd

Search Discussions

  • Mike Rylander at Feb 25, 2010 at 12:01 am

    On Wed, Feb 24, 2010 at 4:35 PM, Richard Huxton wrote:
    With plperl.on_init allowing the loading of modules, might there be some
    merit (and little cost) in allowing the same style of function-mapping as
    with C functions?

    CREATE FUNCTION add_one(integer) RETURNS integer
    AS 'DIRECTORY/funcs', 'add_one'
    LANGUAGE C STRICT;

    CREATE FUNCTION add_one(integer) RETURNS integer
    AS 'My::Package', 'add_one'
    LANGUAGE plperl STRICT;
    +1, fwiw

    --
    Mike Rylander
    VP, Research and Design
    Equinox Software, Inc. / The Evergreen Experts
    phone: 1-877-OPEN-ILS (673-6457)
    email: miker@esilibrary.com
    web: http://www.esilibrary.com
  • Alex Hunsaker at Feb 25, 2010 at 12:18 am

    On Wed, Feb 24, 2010 at 14:35, Richard Huxton wrote:
    With plperl.on_init allowing the loading of modules, might there be some
    merit (and little cost) in allowing the same style of function-mapping as
    with C functions?

    CREATE FUNCTION add_one(integer) RETURNS integer
    AS 'DIRECTORY/funcs', 'add_one'
    LANGUAGE C STRICT;

    CREATE FUNCTION add_one(integer) RETURNS integer
    AS 'My::Package', 'add_one'
    LANGUAGE plperl STRICT;
    Interesting... Seems like a good idea. But it aint gonna happen for 9.0 :(

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppgsql-hackers @
categoriespostgresql
postedFeb 24, '10 at 9:36p
activeFeb 25, '10 at 12:18a
posts3
users3
websitepostgresql.org...
irc#postgresql

People

Translate

site design / logo © 2022 Grokbase