pg 8.1.2 ERROR: direct correlated subquery unsupported as initplan

Started by Ed L.about 20 years ago3 messagesgeneral
Jump to latest
#1Ed L.
pgsql@bluepolka.net

Just encountered this error on an 8.1.2 cluster:

LOG: statement: PREPARE dbdpg_5 AS SELECT * FROM foo WHERE visitnum = $1 and (scheduledtime >= $2 OR scheduledtime IS NULL) AND (scheduledtime < $3 OR scheduledtime IS NULL) UNION SELECT * FROM bar WHERE visitnum = $4 ORDER BY scheduledtime
LOG: statement: <BIND>
LOG: statement: EXECUTE <unnamed> [PREPARE: SELECT * FROM foo WHERE visitnum = $1 and (scheduledtime >= $2 OR scheduledtime IS NULL) AND (scheduledtime < $3 OR scheduledtime IS NULL) UNION SELECT * FROM bar WHERE visitnum = $4 ORDER BY scheduledtime]
ERROR: direct correlated subquery unsupported as initplan

A run of 'analyze' seems to have made the error go away.

Here's our version:

PostgreSQL 8.1.2 on ia64-unknown-linux-gnu, compiled by GCC gcc (GCC) 3.4.3 20050227 (Red Hat 3.4.3-22.1)

Any clues?

Thanks,
Ed

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Ed L. (#1)
Re: pg 8.1.2 ERROR: direct correlated subquery unsupported as initplan

"Ed L." <pgsql@bluepolka.net> writes:

Just encountered this error on an 8.1.2 cluster:
ERROR: direct correlated subquery unsupported as initplan

Can you provide a test case for this? (No, the query text is not
enough.)

regards, tom lane

#3Ed L.
pgsql@bluepolka.net
In reply to: Tom Lane (#2)
Re: pg 8.1.2 ERROR: direct correlated subquery unsupported as initplan

On Monday January 30 2006 3:05 pm, Tom Lane wrote:

"Ed L." <pgsql@bluepolka.net> writes:

Just encountered this error on an 8.1.2 cluster:
ERROR: direct correlated subquery unsupported as initplan

Can you provide a test case for this? (No, the query text is
not enough.)

Apparently not, much as I'd like to.

Ed