Re: Probably badly timed suggestion: pl/perl calling style same as C style

From: Mike Rylander <mrylander(at)gmail(dot)com>
To: Richard Huxton <dev(at)archonet(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>
Subject: Re: Probably badly timed suggestion: pl/perl calling style same as C style
Date: 2010-02-25 00:01:05
Message-ID: b918cf3d1002241601s737f03a1q114c1985b09da3f2@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Feb 24, 2010 at 4:35 PM, Richard Huxton <dev(at)archonet(dot)com> 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(at)esilibrary(dot)com
| web: http://www.esilibrary.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2010-02-25 00:04:37 Re: pg_stop_backup does not complete
Previous Message Simon Riggs 2010-02-24 23:57:53 Re: pg_stop_backup does not complete