Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 836629FA2A7 for ; Sat, 2 Dec 2006 13:13:58 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 64412-10 for ; Sat, 2 Dec 2006 13:13:54 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 421C09FA298 for ; Sat, 2 Dec 2006 13:13:54 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id kB2HDqWD021381; Sat, 2 Dec 2006 12:13:52 -0500 (EST) To: Kim cc: pgsql-performance@postgresql.org Subject: Re: Dump performance problems following server crash In-reply-to: <4571A0BC.8020503@myemma.com> References: <4571A0BC.8020503@myemma.com> Comments: In-reply-to Kim message dated "Sat, 02 Dec 2006 09:50:20 -0600" Date: Sat, 02 Dec 2006 12:13:52 -0500 Message-ID: <21380.1165079632@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/11 X-Sequence-Number: 22067 Kim 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