From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ernesto <equistango@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Very slow INFORMATION_SCHEMA
Date: Fri, 02 May 2008 18:20:58 -0400
Message-ID: <26118.1209766858@sss.pgh.pa.us> (raw)
In-Reply-To: <481B82AE.8050607@gmail.com>
References: <481B82AE.8050607@gmail.com>
Ernesto <equistango@gmail.com> writes:
> I'm wondering why would this query take about 90 seconds to return 74 rows?
EXPLAIN ANALYZE might tell you something.
Is this really the query you're running? Because these two columns
don't exist:
> INFORMATION_SCHEMA.KEY_COLUMN_USAGE.REFERENCED_TABLE_NAME,
> INFORMATION_SCHEMA.KEY_COLUMN_USAGE.REFERENCED_COLUMN_NAME
Leaving those out, I get sub-second runtimes for 70-odd foreign key
constraints, on much slower hardware than I think you are using.
regards, tom lane
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, equistango@gmail.com
Subject: Re: Very slow INFORMATION_SCHEMA
In-Reply-To: <26118.1209766858@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