pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add more tests for VACUUM skips with partitioned tables
Date: Fri, 24 Aug 2018 00:16:20 +0000
Message-ID: <E1fszm0-0005Zq-GE@gemulon.postgresql.org> (raw)

Add more tests for VACUUM skips with partitioned tables

A VACUUM or ANALYZE command listing directly a partitioned table expands
it to its partitions, causing all elements of a tree to be processed
with individual ownership checks done.  This results in different
relation skips depending on the ownership policy of a tree, which may
not be consistent for a partition tree.  This commit adds more tests to
ensure that any future refactoring allows to keep a consistent behavior,
or at least that any changes done are easily identified and checked.
The current behavior of VACUUM with partitioned tables is present since
10.

Author: Nathan Bossart
Reviewed-by: Michael Paquier
Discussion: https://postgr.es/m/DC186201-B01F-4A66-9EC4-F855A957C1F9@amazon.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a569eea6998a26689409ff6eb5fce2c1eab0f5e1

Modified Files
--------------
src/test/regress/expected/vacuum.out | 99 ++++++++++++++++++++++++++++++++++++
src/test/regress/sql/vacuum.sql      | 57 +++++++++++++++++++++
2 files changed, 156 insertions(+)



Message-ID: <E1fszm0-0005Zq-GE@gemulon.postgresql.org>
Permalink:  ../E1fszm0-0005Zq-GE@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1fszm0-0005Zq-GE@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Add more tests for VACUUM skips with partitioned tables
  In-Reply-To: <E1fszm0-0005Zq-GE@gemulon.postgresql.org>
  References: <E1fszm0-0005Zq-GE@gemulon.postgresql.org>

* 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