pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Justin Pryzby <pryzby@telsasoft.com>
To: Vladimir Ryabtsev <greatvovan@gmail.com>
Cc: f.pardi@portavita.eu
Cc: pgsql-performance@lists.postgresql.org
Subject: Re: Why could different data in a table be processed with different performance?
Date: Mon, 24 Sep 2018 21:19:54 -0500
Message-ID: <20180925021954.GW2471@telsasoft.com> (raw)
In-Reply-To: <CAMqTPq=f2fQ8tnUu3UxrvfogiDCn+04HWFX8fpZkDoeYQ7ktTQ@mail.gmail.com>
References: <CAMqTPq=aFwfiqv=P9EDs+UxeOgfe03kyQ0uvtUHvSxvfSvYR+w@mail.gmail.com>
	<4dbb8bea-bea3-74d8-a537-36bb9864cb9f@portavita.eu>
	<CAMqTPqkMDEkvx7jUquUCCkwgwYdcS-byzimjap2osxYWqp1KjA@mail.gmail.com>
	<e8d93055-9643-0ad2-d8bd-3f4fc344bf51@portavita.eu>
	<CAMqTPqnUB54YXQutPKPWdoUKEZOnV58WndfTvZagrNLiTr6RHw@mail.gmail.com>
	<20180924233423.GV2471@telsasoft.com>
	<CAMqTPq=f2fQ8tnUu3UxrvfogiDCn+04HWFX8fpZkDoeYQ7ktTQ@mail.gmail.com>

On Mon, Sep 24, 2018 at 05:59:12PM -0700, Vladimir Ryabtsev wrote:
> > I *suspect* VACUUM FULL won't help, since (AIUI) it copies all "visible"
...
> I am going copy the slow range into a table nearby and see if it reproduces
> (I hope "INSERT INTO t2 SELECT * FROM t1 WHERE ..." will keep existing
> order of rows). Then I could try the same after CLUSTER.

If it does an index scan, I think that will badly fail to keep the same order
of heap TIDs - it'll be inserting rows in ID order rather than in (I guess)
reverse ID order.

Justin




view thread (33+ messages)  latest in thread

Message-ID: <20180925021954.GW2471@telsasoft.com>
Permalink:  ../20180925021954.GW2471@telsasoft.com/
Also on:    postgresql.org/message-id/20180925021954.GW2471@telsasoft.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: pryzby@telsasoft.com, greatvovan@gmail.com, f.pardi@portavita.eu, pgsql-performance@lists.postgresql.org
  Subject: Re: Why could different data in a table be processed with different performance?
  In-Reply-To: <20180925021954.GW2471@telsasoft.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