Re: SRF called with optional NULL input runs 7x slower - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: SRF called with optional NULL input runs 7x slower
Date
Msg-id 20070924140025.GA5846@alvh.no-ip.org
Whole thread Raw
In response to Re: SRF called with optional NULL input runs 7x slower  (Ow Mun Heng <Ow.Mun.Heng@wdc.com>)
List pgsql-general
Ow Mun Heng wrote:
> On Mon, 2007-09-24 at 02:31 -0400, Alvaro Herrera wrote:

> > > it ERRORs w/ could not determine data type of parameter $3
> >
> > Cast it to the correct type.
>
> how do I cast a NULL? Is it Varchar?

I didn't say "pick a random datatype", I said "the correct type", which
in this case means the type "code" has in the function.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-general by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Transaction Steps!!
Next
From: Tom Lane
Date:
Subject: Re: pg_dump problem: 'pg_dump: schema with OID 1515546 does not exist'