Skip site navigation (1) Skip section navigation (2)

Transaction safe Truncate

From: Rod Taylor <rbt(at)rbt(dot)ca>
To: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Transaction safe Truncate
Date: 2002-11-18 17:00:21
Message-ID: 1037638820.29624.26.camel@jester (view raw or flat)
Thread:
Lists: pgsql-patches
Didn't move anything anywhere.  Simply split cluster_rel into two parts.
rebuild_rel() does the rebuilding steps.  Truncate uses this skipping
the datacopy stage by calling with dataCopy = false.


If wanted (separate patch), the below could (should?) probably move to
heap.c:
rebuild_rel
make_new_heap
copy_heap_data
swap_relfilenodes

The below could (should?) move to index.c:
get_indexattr_list
recreate_indexattr

That leaves the below in cluster.c:
cluster_rel
cluster
check_cluster_ownership
get_table_to_cluster



-- 
Rod Taylor <rbt(at)rbt(dot)ca>

Attachment: transactionsafe_truncate.patch
Description: text/plain (10.3 KB)

Responses

pgsql-patches by date

Next:From: Bruce MomjianDate: 2002-11-18 17:17:08
Subject: Re: CLUSTER ALL syntax
Previous:From: Hiroshi InoueDate: 2002-11-18 02:31:42
Subject: Re: CLUSTER ALL syntax

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group