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

From Robert Haas
Subject Re: Re: [COMMITTERS] pgsql: Coerce 'unknown' type parameters to the right type in the
Date
Msg-id AANLkTi=yuupJdDsspTjdCapLaF0sjQUWJ4f70r5azagG@mail.gmail.com
Whole thread Raw
In response to Re: Re: [COMMITTERS] pgsql: Coerce 'unknown' type parameters to the right type in the  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Re: [COMMITTERS] pgsql: Coerce 'unknown' type parameters to the right type in the  ("David E. Wheeler" <david@kineticode.com>)
Re: Re: [COMMITTERS] pgsql: Coerce 'unknown' type parameters to the right type in the  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
List pgsql-hackers
On Thu, Aug 19, 2010 at 9:47 AM, Tom Lane <tgl@sss.pgh.pa.us> 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.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company


pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: wip: functions median and percentile
Next
From: Alvaro Herrera
Date:
Subject: Re: CommitFest 2009-07: Yay, Kevin! Thanks, reviewers!