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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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 Content-Type Size
transactionsafe_truncate.patch text/plain 10.3 KB

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2002-11-18 17:17:08 Re: CLUSTER ALL syntax
Previous Message Hiroshi Inoue 2002-11-18 02:31:42 Re: CLUSTER ALL syntax