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 15:51:12 -0700
Message-ID: <0d6e6bd8-20db-5902-f5eb-7130ff5543d0@aklaver.com> (raw)
In-Reply-To: <CADBz384k+ugWNODy80cU1qE6X0rzDHHuxqxihn-q1e9xFxm79g@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>
	<ad7b0fa3-2502-f711-6237-72eb06e0f355@aklaver.com>
	<CADBz384k+ugWNODy80cU1qE6X0rzDHHuxqxihn-q1e9xFxm79g@mail.gmail.com>

On 9/23/19 3:43 PM, Corey Taylor wrote:
> On Mon, Sep 23, 2019 at 4:50 PM Adrian Klaver <adrian.klaver@aklaver.com 
> <mailto:adrian.klaver@aklaver.com>> wrote:
> 
>     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
> 
> 
> 
> Thanks for the feedback.  I think we'll be able to work around this 
> issue in a way that is reliable enough to script.
> 
> I am curious if this is a "known" issue with restoring tables and 
> analyze running at some point after while performing a select on the 
> tables.  It would be kind of nice to know when to predict this kind of 
> situation.

Usually what is seen here is the opposite, that tables are restored and 
ANALYZE is not run and performance on the subsequent queries is poor due 
to lack of current statistics.

What is the restore process?

> 
> corey


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (16+ messages)  latest in thread

Message-ID: <0d6e6bd8-20db-5902-f5eb-7130ff5543d0@aklaver.com>
Permalink:  ../0d6e6bd8-20db-5902-f5eb-7130ff5543d0@aklaver.com/
Also on:    postgresql.org/message-id/0d6e6bd8-20db-5902-f5eb-7130ff5543d0@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: <0d6e6bd8-20db-5902-f5eb-7130ff5543d0@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> <CADBz384k+ugWNODy80cU1qE6X0rzDHHuxqxihn-q1e9xFxm79g@mail.gmail.com> <0d6e6bd8-20db-5902-f5eb-7130ff5543d0@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