pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kim <kim@myemma.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Dump performance problems following server crash
Date: Sat, 02 Dec 2006 12:13:52 -0500
Message-ID: <21380.1165079632@sss.pgh.pa.us> (raw)
In-Reply-To: <4571A0BC.8020503@myemma.com>
References: <4571A0BC.8020503@myemma.com>

Kim <kim@myemma.com> writes:
> The current dump query running:
> SELECT t.tableoid, t.oid, t.relname as indexname, 
> pg_catalog.pg_get_indexdef(i.indexrelid) as indexdef, t.relnatts as 
> indnkeys, i.indkey, i.indisclustered, c.contype, c.conname, c.tableoid 
> as contableoid, c.oid as conoid, (SELECT spcname FROM 
> pg_catalog.pg_tablespace s WHERE s.oid = t.reltablespace) as tablespace 
> FROM pg_catalog.pg_index i JOIN pg_catalog.pg_class t ON (t.oid = 
> i.indexrelid) LEFT JOIN pg_catalog.pg_depend d ON (d.classid = 
> t.tableoid AND d.objid = t.oid AND d.deptype = 'i') LEFT JOIN 
> pg_catalog.pg_constraint c ON (d.refclassid = c.tableoid AND d.refobjid 
> = c.oid) WHERE i.indrelid = '44240'::pg_catalog.oid ORDER BY indexname

> Amount of time it took me to run the query from console: ~5secs (I'm 
> counting in my head, sophisticated, eh?)

Even 5 seconds is way too long.  You've apparently still got something
corrupted somewhere.  Did you reindex *all* the system catalogs?

			regards, tom lane



view thread (3+ messages)  latest in thread

Message-ID: <21380.1165079632@sss.pgh.pa.us>
Permalink:  ../21380.1165079632@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21380.1165079632@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, kim@myemma.com
  Subject: Re: Dump performance problems following server crash
  In-Reply-To: <21380.1165079632@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