pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Nikolas Everett <nik9000@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: explain analyze reports that my queries are fast but they run very slowly
Date: Thu, 27 Dec 2012 16:33:21 -0500
Message-ID: <19936.1356644001@sss.pgh.pa.us> (raw)
In-Reply-To: <CAPmjWd01U5Wffr_9uVwOrbDba1R=RhZUtN8-dbnAyBy7ZyTHdg@mail.gmail.com>
References: <CAPmjWd2XgV9d3zy3zc8L9PJRdoVM720g2zSQWsDKZsJkOqKMjw@mail.gmail.com>
	<17229.1356636060@sss.pgh.pa.us>
	<CAPmjWd3S5pf=BTmjY3h9eAS09S5pAmxwa9X2DtMCUKaMrYdveA@mail.gmail.com>
	<17694.1356637368@sss.pgh.pa.us>
	<CAPmjWd22Jrg704jUP7ACrF3heTyfh_wcghFHqOJnSgbwLF=uhA@mail.gmail.com>
	<CAPmjWd01U5Wffr_9uVwOrbDba1R=RhZUtN8-dbnAyBy7ZyTHdg@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

Nikolas Everett <nik9000@gmail.com> writes:
> We straced the backend during the explain and it looked like the open
> commands were taking several seconds each.

Kind of makes me wonder if you have a whole lot of tables ("whole lot"
in this context probably means tens of thousands) and are storing the
database on a filesystem that doesn't scale well to lots of files in one
directory.  If that's the explanation, the reason the 8.3 installation
was okay was likely that it was stored on a more modern filesystem.

BTW, please keep the list cc'd on replies.

			regards, tom lane


-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



view thread (14+ messages)  latest in thread

Message-ID: <19936.1356644001@sss.pgh.pa.us>
Permalink:  ../19936.1356644001@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19936.1356644001@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, nik9000@gmail.com
  Subject: Re: explain analyze reports that my queries are fast but they run very slowly
  In-Reply-To: <19936.1356644001@sss.pgh.pa.us>

* 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