Re: Efficiency of timestamps - Mailing list pgsql-performance

From Martin Foster
Subject Re: Efficiency of timestamps
Date
Msg-id 3F0BBB7E.6080008@ethereal-realms.org
Whole thread Raw
In response to Re: Efficiency of timestamps  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
List pgsql-performance
Stephan Szabo wrote:
>
> Well, the reason I asked is to see both whether the estimates for the
> various columns were somewhere near reality (if not, then you may need to
> raise the statistics target for the column) which might affect whether
> it'd consider using a multi-column index for the conditions and sort
> rather than the index scan it was using.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

I'm going to have to pull out the 'Practical PostgreSQL' book and brush
up on optimizing.   This level of optimization is not something I have
had to deal with in the past.

Also to make this interesting.  The sub-query method is faster at times
and slower in others.   But doing two separate queries and working on
the PostIDNumber field exclusively is always blazingly fast...

     Martin Foster
     Creator/Designer Ethereal Realms
     martin@ethereal-realms.org




pgsql-performance by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Efficiency of timestamps
Next
From: Chris Bowlby
Date:
Subject: Some very weird behaviour....