Re: unplanned sub-select error?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kyle Bateman <kyle(at)actarg(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: unplanned sub-select error?
Date: 2005-11-22 01:10:54
Message-ID: 6603.1132621854@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Kyle Bateman <kyle(at)actarg(dot)com> writes:
> I have a query:
> insert into mtr_reg_v_wt (ropnum, inum, pnum, rquant, value, status,
> ddate, fr_proj, to_proj) values (28985,1,1014,1,(select cost from
> prd_part where pnum = 1014),'work','2005-Nov-15',50,75);

> That used to work fine under 7.1.3 but now gives the error:

> ERROR: cannot handle unplanned sub-select

You need to offer a little more context, like what PG version you are
using now and what is the underlying DDL --- I suspect some rules or
views are involved here, but you didn't show them to us.

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message george young 2005-11-22 01:35:27 Re: tid_le comparison for tuple id (ctid) values?
Previous Message Kyle Bateman 2005-11-22 00:37:36 unplanned sub-select error?