pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Artem Tomyuk <admin@leboutique.com>
Cc: Hubert Lubaczewski <depesz@depesz.com>
Cc: Keith <keith@keithf4.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: how to shrink pg_attribute table in some database
Date: Mon, 26 Mar 2018 11:46:21 -0400
Message-ID: <28175.1522079181@sss.pgh.pa.us> (raw)
In-Reply-To: <CANYYVqKmy99=isiRfwLPhBPyuCtHCpwz-_ZtmFabqX0vnRLJVg@mail.gmail.com>
References: <CANYYVqKwgR8TK6ar54vbXLc01KH-_ppM=qh6GLQ6edmmexX-EQ@mail.gmail.com>
	<CAHw75vuFvy_Tn9ZT0zANugeJOLhrfcmxv4r+XeJV0NszVNmn5Q@mail.gmail.com>
	<CANYYVqLSEdHVzXiUUHp+mPM+X5tbbP_oOfHh5-RJGoTkReGsmA@mail.gmail.com>
	<20180326141756.GB708@depesz.com>
	<CANYYVq+5Og_e=d4h4uvuh3s-e1PfdR5t1QeStPKoR24q_DdZfw@mail.gmail.com>
	<20180326152425.GA23643@depesz.com>
	<CANYYVqJn8pxN-YU4C7Y=u1nxrqzmWwwz4bXLFs6_JbQwpiTggA@mail.gmail.com>
	<20180326153337.GA8484@depesz.com>
	<CANYYVqKmy99=isiRfwLPhBPyuCtHCpwz-_ZtmFabqX0vnRLJVg@mail.gmail.com>

Artem Tomyuk <admin@leboutique.com> writes:
> There was broken query that every time was creating temp table and than was
> trying to insert into this table some data in another query but within
> single connection, what happened next that second query was unable to be
> executed because of syntax error (yes, human factor), this query was
> repeated every minute by cron 24/7.

One temp table per minute doesn't explain this amount of bloat, unless
autovacuum had failed to process pg_attribute for a really really long
time.  It would be good to figure out why that happened.

			regards, tom lane




view thread (12+ messages)  latest in thread

Message-ID: <28175.1522079181@sss.pgh.pa.us>
Permalink:  ../28175.1522079181@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28175.1522079181@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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, admin@leboutique.com, depesz@depesz.com, keith@keithf4.com
  Subject: Re: how to shrink pg_attribute table in some database
  In-Reply-To: <28175.1522079181@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