From: John Beaver <john.e.beaver@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Jeremy Harris <jgh@wizmail.org>
Cc: Pgsql-Performance <pgsql-performance@postgresql.org>
Subject: Re: sequence scan problem
Date: Mon, 30 Jun 2008 20:37:58 -0400
Message-ID: <48697C66.5040501@gmail.com> (raw)
In-Reply-To: <28999.1214839555@sss.pgh.pa.us>
References: <48680418.7030708@gmail.com>
<48680860.2000300@wizmail.org>
<4868BC74.6020006@gmail.com>
<28999.1214839555@sss.pgh.pa.us>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<chuckle> You're right - for some reason I was looking at the (18
rows) at the bottom. Pilot error indeed - I'll have to figure out
what's going on with my data.<br>
<br>
Thanks!<br>
<br>
Tom Lane wrote:
<blockquote cite="mid:28999.1214839555@sss.pgh.pa.us" type="cite">
<pre wrap="">John Beaver <a class="moz-txt-link-rfc2396E" href="mailto:john.e.beaver@gmail.com"><john.e.beaver@gmail.com></a> writes:
</pre>
<blockquote type="cite">
<pre wrap="">Ok, here's the explain analyze result. Again, this is Postgres 8.3.3 and
I vacuumed-analyzed both tables directly after they were created.
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<pre wrap=""> Merge Join (cost=1399203593.41..6702491234.74 rows=352770803726
width=22) (actual time=6370194.467..22991303.434 rows=15610535128 loops=1)
</pre>
</blockquote>
<pre wrap=""><!----> ^^^^^^^^^^^
Weren't you saying that only 50 rows should be returned? I'm thinking
the real problem here is pilot error: you missed out a needed join
condition or something. SQL will happily execute underconstrained
queries ...
regards, tom lane
</pre>
</blockquote>
</body>
</html>
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: john.e.beaver@gmail.com, tgl@sss.pgh.pa.us, jgh@wizmail.org
Subject: Re: sequence scan problem
In-Reply-To: <48697C66.5040501@gmail.com>
* 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