pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Corey Taylor <corey.taylor.fl@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: postgres 9.6: insert into select finishes only in pgadmin not psql
Date: Mon, 23 Sep 2019 14:50:55 -0700
Message-ID: <ad7b0fa3-2502-f711-6237-72eb06e0f355@aklaver.com> (raw)
In-Reply-To: <CADBz38788sE8G54daHmfVYkaMhYTEdFyd--BtdF=2BOJGuj8Gw@mail.gmail.com>
References: <CADBz384j3nVLiAHkLk+mXP4tszrs_QjdiNb6WnZ=v1+hzzvUQw@mail.gmail.com>
	<11667.1568842347@sss.pgh.pa.us>
	<CADBz387VJq5QQ+S_E7ft7QNRdxhCtMUhGcRuYV=5TQrss50pjQ@mail.gmail.com>
	<26981.1569247037@sss.pgh.pa.us>
	<CADBz384J5pvu2EV5DjC2eZOkG-bSNbjdHLD1qxd5Jt_pfhS2KQ@mail.gmail.com>
	<0745ddd3-0934-53d3-8b8d-41f2724f8247@aklaver.com>
	<CADBz38788sE8G54daHmfVYkaMhYTEdFyd--BtdF=2BOJGuj8Gw@mail.gmail.com>

On 9/23/19 2:34 PM, Corey Taylor wrote:
> On Mon, Sep 23, 2019 at 4:31 PM Adrian Klaver <adrian.klaver@aklaver.com 
> <mailto:adrian.klaver@aklaver.com>> wrote:
> 
>     Hmm, are there triggers on wss_entries that are UPDATEing/DELETEing
>     entries elsewhere?
> 
> 
> No, that table is pretty much stand-alone.  What we're seeing here is 
> most likely caused by the initial copy of the legacy db tables.
> 
> This happens when creating the local test db which I do right before the 
> tests.  I can avoid the issue if I monitor top and wait for the analyze 
> to complete on all the related tables.

Big hammer approach:

alter system set autovacuum = off;
SELECT pg_reload_conf();

Do work

alter system reset autovacuum;

SELECT pg_reload_conf();

Smaller hammer:

https://www.postgresql.org/docs/11/sql-createtable.html#SQL-CREATETABLE-STORAGE-PARAMETERS

"autovacuum_enabled, toast.autovacuum_enabled (boolean)"

which can be done by ALTER TABLE also:

https://www.postgresql.org/docs/11/sql-altertable.html

> 
> corey


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (16+ messages)  latest in thread

Message-ID: <ad7b0fa3-2502-f711-6237-72eb06e0f355@aklaver.com>
Permalink:  ../ad7b0fa3-2502-f711-6237-72eb06e0f355@aklaver.com/
Also on:    postgresql.org/message-id/ad7b0fa3-2502-f711-6237-72eb06e0f355@aklaver.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-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, corey.taylor.fl@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: postgres 9.6: insert into select finishes only in pgadmin not psql
  In-Reply-To: <ad7b0fa3-2502-f711-6237-72eb06e0f355@aklaver.com>
  References: <CADBz384j3nVLiAHkLk+mXP4tszrs_QjdiNb6WnZ=v1+hzzvUQw@mail.gmail.com> <11667.1568842347@sss.pgh.pa.us> <CADBz387VJq5QQ+S_E7ft7QNRdxhCtMUhGcRuYV=5TQrss50pjQ@mail.gmail.com> <26981.1569247037@sss.pgh.pa.us> <CADBz384J5pvu2EV5DjC2eZOkG-bSNbjdHLD1qxd5Jt_pfhS2KQ@mail.gmail.com> <0745ddd3-0934-53d3-8b8d-41f2724f8247@aklaver.com> <CADBz38788sE8G54daHmfVYkaMhYTEdFyd--BtdF=2BOJGuj8Gw@mail.gmail.com> <ad7b0fa3-2502-f711-6237-72eb06e0f355@aklaver.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