From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mario Splivalo <mario.splivalo@megafon.hr>
Cc: pgsql-sql@postgresql.org
Subject: Re: Using CASE in plpgsql causes 'ERROR: cache lookup failed'
Date: Wed, 14 Apr 2010 19:11:39 -0400
Message-ID: <16679.1271286699@sss.pgh.pa.us> (raw)
In-Reply-To: <4BC58F7B.4000405@megafon.hr>
References: <4BC58F7B.4000405@megafon.hr>
Mario Splivalo <mario.splivalo@megafon.hr> writes:
> When I call 'service_something' function and provide nonexistent
> service_id I get this error:
> ERROR: cache lookup failed for type 37
Hmm. Looks like exec_eval_expr should be more careful about setting
a result datatype when the expression returns no rows. NULL is NULL,
but it still has a defined datatype ...
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, mario.splivalo@megafon.hr
Subject: Re: Using CASE in plpgsql causes 'ERROR: cache lookup failed'
In-Reply-To: <16679.1271286699@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox