pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jasiek@klaster.net
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Roman Fail <rfail@posportal.com>
Cc: Josh Berkus <josh@agliodbs.com>
Cc: sszabo@megazone23.bigpanda.com
Cc: pgsql-performance@postgresql.org
Subject: Re: 7.3.1 New install, large queries are slow
Date: Thu, 16 Jan 2003 21:48:26 +0100
Message-ID: <20030116204826.GA26576@serwer> (raw)
In-Reply-To: <26712.1042746393@sss.pgh.pa.us>
References: <9B1C77393DED0D4B9DAA1AA1742942DA0E4C06@pos_pdc.posportal.com>
	<26712.1042746393@sss.pgh.pa.us>

Tom said:
> datatype mismatch that prevents the index from being used.  What are the
> datatypes of d.batchid and b.batchid, exactly?  If they're not the same,
> either make them the same or add an explicit coercion to the query, like
> 	WHERE d.batchid = b.batchid::typeof_d_batchid
>
It can be source of problem. I found in one of Roman's mail, that
batchid is declared as int8 in master table and as int4 in detail table.
Regards,
Tomasz Myrta



view thread (66+ messages)  latest in thread

Message-ID: <20030116204826.GA26576@serwer>
Permalink:  ../20030116204826.GA26576@serwer/
Also on:    postgresql.org/message-id/20030116204826.GA26576@serwer

 · 

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-performance@postgresql.org
  Cc: jasiek@klaster.net, tgl@sss.pgh.pa.us, rfail@posportal.com, josh@agliodbs.com, sszabo@megazone23.bigpanda.com
  Subject: Re: 7.3.1 New install, large queries are slow
  In-Reply-To: <20030116204826.GA26576@serwer>
  References: <9B1C77393DED0D4B9DAA1AA1742942DA0E4C06@pos_pdc.posportal.com> <26712.1042746393@sss.pgh.pa.us> <20030116204826.GA26576@serwer>

* 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