pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Erik Jones <erik@myemma.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: More 8.2 client issues (Was: [Slow dump?)
Date: Wed, 03 Jan 2007 11:24:39 -0500
Message-ID: <11617.1167841479@sss.pgh.pa.us> (raw)
In-Reply-To: <459BD61C.3030202@myemma.com>
References: <459AD5A8.7030102@myemma.com>
	<22512.1167779361@sss.pgh.pa.us>
	<459BD61C.3030202@myemma.com>

Erik Jones <erik@myemma.com> 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



view thread (17+ messages)  latest in thread

Message-ID: <11617.1167841479@sss.pgh.pa.us>
Permalink:  ../11617.1167841479@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11617.1167841479@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, erik@myemma.com
  Subject: Re: More 8.2 client issues (Was: [Slow dump?)
  In-Reply-To: <11617.1167841479@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