pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: jhood@hmcon.com
Cc: pgsql-general@postgresql.org
Subject: Re: Query Performance...
Date: Thu, 18 Jul 2002 10:08:29 -0400
Message-ID: <5125.1027001309@sss.pgh.pa.us> (raw)
In-Reply-To: <a2c11736.0207171231.22cae5e6@posting.google.com>
References: <a2c11736.0207171231.22cae5e6@posting.google.com>

jhood@hmcon.com (Jeffrey Hood) writes:
> We have recently converted from MS SQLServer 7 to Postgres 7.1...  The
> following query runs perfectly fine in SQL Server with any where
> clause attached, but in Postgres runs fine until you put a where
> clause that has *no* criteria for Patients... then it runs forever... 

Define "runs forever".  AFAICT this query is going to give 750K rows of
output, if there's no WHERE clause.  How long do you expect that to
take?  How long does it actually take?  Is SQL Server really any faster
given the same query with no WHERE?

			regards, tom lane



view thread (47+ messages)  latest in thread

Message-ID: <5125.1027001309@sss.pgh.pa.us>
Permalink:  ../5125.1027001309@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5125.1027001309@sss.pgh.pa.us

 · 

reply

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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jhood@hmcon.com
  Subject: Re: Query Performance...
  In-Reply-To: <5125.1027001309@sss.pgh.pa.us>
  References: <a2c11736.0207171231.22cae5e6@posting.google.com> <5125.1027001309@sss.pgh.pa.us>

* 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