aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/cache/relcache.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2014-11-15 01:19:49 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2014-11-15 01:19:49 -0300
commit85b506bbfc2937c9abdfcce4e01a8feca8e64ee8 (patch)
tree6525cd42c9bd3dec7e2eadcedc0594e8c113c403 /src/backend/utils/cache/relcache.c
parente4d1e264918f4019c86c807e7c349658f7a10397 (diff)
downloadpostgresql-85b506bbfc2937c9abdfcce4e01a8feca8e64ee8.tar.gz
postgresql-85b506bbfc2937c9abdfcce4e01a8feca8e64ee8.zip
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
Diffstat (limited to 'src/backend/utils/cache/relcache.c')
-rw-r--r--src/backend/utils/cache/relcache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/utils/cache/relcache.c b/src/backend/utils/cache/relcache.c
index 4b4528f7917..2250c56d28b 100644
--- a/src/backend/utils/cache/relcache.c
+++ b/src/backend/utils/cache/relcache.c
@@ -3078,6 +3078,7 @@ RelationSetNewRelfilenode(Relation relation, TransactionId freezeXid,
}
classform->relfrozenxid = freezeXid;
classform->relminmxid = minmulti;
+ classform->relpersistence = relation->rd_rel->relpersistence;
simple_heap_update(pg_class, &tuple->t_self, tuple);
CatalogUpdateIndexes(pg_class, tuple);