Re: Query error corrected after vacuum

From: Tod McQuillin <devin(at)spamcop(dot)net>
To: Matt Doucleff <matt(at)digitalfountain(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Query error corrected after vacuum
Date: 2000-11-12 04:05:37
Message-ID: Pine.GSO.4.21.0011112202540.7805-100000@sysadmin
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, 11 Nov 2000, Matt Doucleff wrote:

> I'm getting the following error:
>
> select name from files where dir_id =
> (select id from dirs where domain_id =
> (select id from domains where domain = 'foo'))
>
> ERROR: ExecReScanSetParamPlan: extParam list of plan is NULL

I don't know what's causing the error, but the above query should be the
same as this multi-table join:

select f.name from files f, dirs di, domains do
where f.dir_id = di.id
and di.domain_id = do.id
and do.domain = 'foo'

So if you can't get the nested sub-selects working the above query may
work better.
--
Tod McQuillin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2000-11-12 06:27:25 Re: Query error corrected after vacuum
Previous Message Wade D. Oberpriller 2000-11-12 03:22:06 More help on PL/Perl