Re: Use UNKNOWN with PL/Perl spi_prepare()?

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>, Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com>
Subject: Re: Use UNKNOWN with PL/Perl spi_prepare()?
Date: 2010-04-07 00:23:57
Message-ID: 4BBBD09D.8030605@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

David E. Wheeler wrote:
> Yes, I would use unknown, because as you said, in Perl the types of values are unknown.
>
> DBD::Pg makes extensive use of unknown for prepares.
>

It has been suggested in the past that we should have a full DBD
interface in plperl, and indeed there was such an animal at one stage,
although it was not compatibly licensed, and it is probably now way out
of date.

The current plperl interface back into the database is a *much* thinner
veneer over SPI than a DBD interface would be. Someone could start a
project for a DBD interface for plperl, but it would be a non-trivial
amount of work, and it should probably not be done piecemeal.

cheers

andrew

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David E. Wheeler 2010-04-07 00:27:48 Re: Use UNKNOWN with PL/Perl spi_prepare()?
Previous Message Tom Lane 2010-04-07 00:06:57 Re: Use UNKNOWN with PL/Perl spi_prepare()?