From: Greg Stark <gsstark@mit.edu>
To: Richard Huxton <dev@archonet.com>
Cc: Greg Stark <gsstark@mit.edu>
Cc: pgsql-performance@postgresql.org
Subject: Re: Planner matching constants across tables in a join
Date: 05 Mar 2003 10:02:17 -0500
Message-ID: <87llzt97ra.fsf@stark.dyndns.tv> (raw)
In-Reply-To: <200303051424.12351.dev@archonet.com>
References: <200303051113.14320.dev@archonet.com>
<87bs0q9e8l.fsf@stark.dyndns.tv>
<200303051424.12351.dev@archonet.com>
Richard Huxton <dev@archonet.com> writes:
> Filter: ((line_id)::text = '0912345 0004'::text)
So I think this means that line_id is being casted to "text". Though I'm not
clear why it would be choosing "text" for the constant if line_id wasn't text
to begin with.
In any case my plans here look like:
> Filter: (aa = 'x'::text)
so it looks like there's something extra going on in your plan.
what does your table definition look like?
--
greg
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: gsstark@mit.edu, dev@archonet.com
Subject: Re: Planner matching constants across tables in a join
In-Reply-To: <87llzt97ra.fsf@stark.dyndns.tv>
References: <200303051113.14320.dev@archonet.com> <87bs0q9e8l.fsf@stark.dyndns.tv> <200303051424.12351.dev@archonet.com> <87llzt97ra.fsf@stark.dyndns.tv>
* 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