Re: Re: [COMMITTERS] pgsql: Coerce 'unknown' type parameters to the right type in the - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: Re: [COMMITTERS] pgsql: Coerce 'unknown' type parameters to the right type in the
Date
Msg-id 6C3D5C78-8CF6-4691-B0F2-D63AD7C29CA2@kineticode.com
Whole thread Raw
In response to Re: Re: [COMMITTERS] pgsql: Coerce 'unknown' type parameters to the right type in the  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On Aug 19, 2010, at 8:08 AM, Robert Haas wrote:

>> Another possibility is for EXECUTE USING to coerce any unknowns to TEXT
>> before it calls the parser at all.  This would square with the typical
>> default assumption for unknown literals, and it would avoid having to
>> have any semantics changes below the SPI call.
> 
> That seems more intuitive than just chucking an error.

It'd be nice if SPI itself could work this way for UNKNOWNs, too.

Best,

David



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: refactoring comment.c
Next
From: Magnus Hagander
Date:
Subject: Re: CommitFest 2009-07: Yay, Kevin! Thanks, reviewers!