Re: Strange Prepare bug

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rod Taylor <rbt(at)rbt(dot)ca>
Cc: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Strange Prepare bug
Date: 2003-01-29 07:37:31
Message-ID: 20675.1043825851@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Rod Taylor <rbt(at)rbt(dot)ca> writes:
> PREPARE "pg_psql_dd2"(text,text) AS=20
> SELECT true
> FROM (
> SELECT true
> FROM pg_catalog.pg_proc p,
> pg_catalog.pg_name_pattern( $2 ) AS (schpat text, propat text)
> WHERE p.prorettype <> 'pg_catalog.cstring'::pg_catalog.regtype
> ) AS tt,
> (SELECT $1 AS cmd) AS cmd;

> ERROR: Parameter '$1' is out of range

I get

ERROR: Function pg_catalog.pg_name_pattern(text) does not exist

It could be the error is inside your custom function?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2003-01-29 07:52:27 FW: [GENERAL] problems with dropped columns
Previous Message Tom Lane 2003-01-29 07:33:01 Re: poor performance of subquery in psql