Re: Use UNKNOWN with PL/Perl spi_prepare()? - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: Use UNKNOWN with PL/Perl spi_prepare()?
Date
Msg-id 1E4F4D5B-337A-48D8-BD9E-A2F0225E45C3@kineticode.com
Whole thread Raw
In response to Re: Use UNKNOWN with PL/Perl spi_prepare()?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Apr 6, 2010, at 5:06 PM, Tom Lane wrote:

> Somehow, emulating the above doesn't attract me nearly as much as it
> evidently does you.  What happens in cases where the parser is unable
> to infer a data type, or infers the wrong one?

An exception should be thrown.

> Or even if it does
> infer a type, how do you find out what it inferred?

Since I'm fetching the data from PL/Perl, I don't really care.

> I'm not excited
> about building a capability that fails to address any except the simplest
> use case.

It will save me a ton of duplicate code.

Best,

David



pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Use UNKNOWN with PL/Perl spi_prepare()?
Next
From: "David E. Wheeler"
Date:
Subject: Re: Use UNKNOWN with PL/Perl spi_prepare()?