Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id BE85A9FA18F for ; Wed, 3 Jan 2007 12:24:51 -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 87232-05 for ; Wed, 3 Jan 2007 12:24:35 -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 4544B9F9312 for ; Wed, 3 Jan 2007 12:24:41 -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 l03GOeNS011618; Wed, 3 Jan 2007 11:24:40 -0500 (EST) To: Erik Jones cc: pgsql-performance@postgresql.org Subject: Re: More 8.2 client issues (Was: [Slow dump?) In-reply-to: <459BD61C.3030202@myemma.com> References: <459AD5A8.7030102@myemma.com> <22512.1167779361@sss.pgh.pa.us> <459BD61C.3030202@myemma.com> Comments: In-reply-to Erik Jones message dated "Wed, 03 Jan 2007 10:13:16 -0600" Date: Wed, 03 Jan 2007 11:24:39 -0500 Message-ID: <11617.1167841479@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/34 X-Sequence-Number: 22635 Erik Jones writes: > ... > sigaction(SIGPIPE, 0x08046E20, 0x08046E70) = 0 > send(4, " Q\0\0\0E5 S E L E C T ".., 230, 0) = 230 > <----------------------------------------------------------- Hang is > right here! > sigaction(SIGPIPE, 0x08046E20, 0x08046E70) = 0 > pollsys(0x08046EE8, 1, 0x00000000, 0x00000000) (sleeping...) > pollsys(0x08046EE8, 1, 0x00000000, 0x00000000) = 1 > recv(4, " T\0\0\0 P\003 o i d\0\0".., 16384, 0) = 140 > ... Hmph. So it seems the delay really is on the server's end. Any chance you could truss the connected backend process too and see what it's doing? Actually ... before you do that, the first query for "\d pg_class" should look like SELECT c.oid, n.nspname, c.relname FROM pg_catalog.pg_class c LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace WHERE c.relname ~ '^(pg_class)$' AND pg_catalog.pg_table_is_visible(c.oid) ORDER BY 2, 3; I could see this taking an unreasonable amount of time if you had a huge number of pg_class rows or a very long search_path --- is your database at all out of the ordinary in those ways? regards, tom lane