pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steve Crawford <scrawford@pinpointresearch.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Matthew T. O'Connor <matthew@zeut.net>
Cc: Jan Wieck <JanWieck@Yahoo.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [ADMIN] Excessive growth of pg_attribute and other system tables
Date: Thu, 31 Mar 2005 12:44:15 -0800
Message-ID: <200503311244.15055.scrawford@pinpointresearch.com> (raw)
In-Reply-To: <14686.1112299573@sss.pgh.pa.us>
References: <200503171515.38214.scrawford@pinpointresearch.com>
	<7739.1112295848@sss.pgh.pa.us>
	<14686.1112299573@sss.pgh.pa.us>

On Thursday 31 March 2005 12:06 pm, Tom Lane wrote:
> I wrote:
> > The light just went on ... system catalog updates don't generate
> > statistics reports.  Hence, autovacuum doesn't know any work is
> > needed.
>
> The above claim is too strong --- they do normally generate stats
> updates.  However, in a simple test I observed that
> pg_stat_all_tables.n_tup_del did not seem to increment for the
> deletes that occur when a temp table is dropped during backend
> exit.  (Most likely we aren't flushing out the final stats
> messages...)
>
> Steve, is your app in the habit of creating lots of temp tables
> that are not dropped explicitly?  That would explain why you are
> getting bit more than other people.

Yes, various processes create in total well over 100 temporary tables 
every hour. None of them are explicitly dropped.

Cheers,
Steve




view thread (19+ messages)  latest in thread

Message-ID: <200503311244.15055.scrawford@pinpointresearch.com>
Permalink:  ../200503311244.15055.scrawford@pinpointresearch.com/
Also on:    postgresql.org/message-id/200503311244.15055.scrawford@pinpointresearch.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: scrawford@pinpointresearch.com, tgl@sss.pgh.pa.us, matthew@zeut.net, JanWieck@Yahoo.com, pgsql-hackers@postgresql.org
  Subject: Re: [ADMIN] Excessive growth of pg_attribute and other system tables
  In-Reply-To: <200503311244.15055.scrawford@pinpointresearch.com>
  References: <200503171515.38214.scrawford@pinpointresearch.com> <7739.1112295848@sss.pgh.pa.us> <14686.1112299573@sss.pgh.pa.us> <200503311244.15055.scrawford@pinpointresearch.com>

* 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