Re: Postgres performance comments from a MySQL user - Mailing list pgsql-general

From Tom Lane
Subject Re: Postgres performance comments from a MySQL user
Date
Msg-id 7937.1055808252@sss.pgh.pa.us
Whole thread Raw
In response to Re: Postgres performance comments from a MySQL user  (Ernest E Vogelsinger <ernest@vogelsinger.at>)
Responses Re: Postgres performance comments from a MySQL user  (Ernest E Vogelsinger <ernest@vogelsinger.at>)
List pgsql-general
Ernest E Vogelsinger <ernest@vogelsinger.at> writes:
> But this wouldn't explain the huge differences I just posted (first query -
> 1500 msecs, follow-ups - 10 msec)

No, I was just responding to Arjen's wondering where 40 or so msec had
gone ... that's of the right order of magnitude to be cache load effects.

> Just now I had the server sit for approx 20 minutes, rerunning the same
> query resulted in 3155 msec, a followup again 10.85 msec.

It's really hard to believe that you could see that kind of ratio from
any sort of cache effects, even kernel disk buffer cache which is
normally pretty large.  Are you sure you were getting the same plan each
time?  I'd like to see EXPLAIN ANALYZE output from all three cases.

            regards, tom lane

pgsql-general by date:

Previous
From: Rory Campbell-Lange
Date:
Subject: Re: Can I do of in one call?
Next
From: Ernest E Vogelsinger
Date:
Subject: Re: Postgres performance comments from a MySQL user