pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tim Jones <TJones@optio.com>
To: Scott Marlowe <smarlowe@g2switchworks.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: joining two tables slow due to sequential scan
Date: Fri, 10 Feb 2006 17:35:50 -0500
Message-ID: <47668A1334CDBF46927C1A0DFEB223D3131315@mail.optiosoftware.com> (raw)



OK.  I'm gonna make a couple of guesses here:

1:  clinicaldocuments.patientidentifier is an int8 and you're running
7.4 or before.

-- nope int4  and 8.1

2: There are more rows with clinicaldocuments.patientidentifier= 123
than with documentversions.documentstatus = 'AC'.

-- nope generally speaking all statuses are 'AC'

3: documentversions.documentidentifier and
clinicaldocuments.dssdocumentidentifier are not the same type.

-- nope both int4

Any of those things true?



view thread (14+ messages)  latest in thread

Message-ID: <47668A1334CDBF46927C1A0DFEB223D3131315@mail.optiosoftware.com>
Permalink:  ../47668A1334CDBF46927C1A0DFEB223D3131315@mail.optiosoftware.com/
Also on:    postgresql.org/message-id/47668A1334CDBF46927C1A0DFEB223D3131315@mail.optiosoftware.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: TJones@optio.com, smarlowe@g2switchworks.com
  Subject: Re: joining two tables slow due to sequential scan
  In-Reply-To: <47668A1334CDBF46927C1A0DFEB223D3131315@mail.optiosoftware.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