Re: SQL Performance Guidelines - Mailing list pgsql-performance

From Christopher Kings-Lynne
Subject Re: SQL Performance Guidelines
Date
Msg-id 41F9068D.4080507@familyhealth.com.au
Whole thread Raw
In response to Re: SQL Performance Guidelines  (Mitch Pirtle <mitch.pirtle@gmail.com>)
List pgsql-performance
> For example, IIRC when joining an integer column with a SERIAL column,
> you must expicitly cast it as an integer or the planner will not use
> the indexes, right? (This is a guess, as I remember reading something
> like this and thinking, "How in the world is someone supposed to
> figure that out, even with EXPLAIN?")

That's not true at all.  Perhaps you're thinking about BIGSERIAL and
int8 indexes - something that's been addressed in 8.0.

Chris

pgsql-performance by date:

Previous
From: Mitch Pirtle
Date:
Subject: Re: SQL Performance Guidelines
Next
From: Alexandre Leclerc
Date:
Subject: Flattening a kind of 'dynamic' table