pgsql: Get rid of SET LOGGED indexes persistence kludge

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Get rid of SET LOGGED indexes persistence kludge
Date: 2014-11-15 04:21:57
Message-ID: E1XpUs1-0007N0-Bg@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Get rid of SET LOGGED indexes persistence kludge

This removes ATChangeIndexesPersistence() introduced by f41872d0c1239d36
which was too ugly to live for long. Instead, the correct persistence
marking is passed all the way down to reindex_index, so that the
transient relation built to contain the index relfilenode can
get marked correctly right from the start.

Author: Fabrízio de Royes Mello
Review and editorialization by Michael Paquier
and Álvaro Herrera

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/85b506bbfc2937c9abdfcce4e01a8feca8e64ee8

Modified Files
--------------
src/backend/catalog/index.c | 28 ++++++++++++++++--
src/backend/commands/cluster.c | 16 +++++++++--
src/backend/commands/indexcmds.c | 2 +-
src/backend/commands/matview.c | 8 +++---
src/backend/commands/tablecmds.c | 56 ++----------------------------------
src/backend/utils/cache/relcache.c | 1 +
src/include/catalog/index.h | 11 ++++---
src/include/commands/cluster.h | 3 +-
8 files changed, 56 insertions(+), 69 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2014-11-15 17:42:05 Re: pgsql: Get rid of SET LOGGED indexes persistence kludge
Previous Message Andres Freund 2014-11-15 00:34:34 pgsql: Backport "Expose fsync_fname as a public API".