diff options
| author | Simon Riggs | 2012-12-01 12:54:20 +0000 |
|---|---|---|
| committer | Simon Riggs | 2012-12-01 12:54:20 +0000 |
| commit | 8de72b66a2edcf12c812de0a73bd50b6b7d81d62 (patch) | |
| tree | 3cb4fc55c3d70b7b972910cfeb22cbb7c704875a /src/include/access | |
| parent | 44c03efee3d15a1db3d64bc5a2da91c145a91873 (diff) | |
COPY FREEZE and mark committed on fresh tables.
When a relfilenode is created in this subtransaction or
a committed child transaction and it cannot otherwise
be seen by our own process, mark tuples committed ahead
of transaction commit for all COPY commands in same
transaction. If FREEZE specified on COPY
and pre-conditions met then rows will also be frozen.
Both options designed to avoid revisiting rows after commit,
increasing performance of subsequent commands after
data load and upgrade. pg_restore changes later.
Simon Riggs, review comments from Heikki Linnakangas, Noah Misch and design
input from Tom Lane, Robert Haas and Kevin Grittner
Diffstat (limited to 'src/include/access')
| -rw-r--r-- | src/include/access/heapam.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/access/heapam.h b/src/include/access/heapam.h index 3be6b3a39f1..92627bfc25c 100644 --- a/src/include/access/heapam.h +++ b/src/include/access/heapam.h @@ -26,6 +26,8 @@ /* "options" flag bits for heap_insert */ #define HEAP_INSERT_SKIP_WAL 0x0001 #define HEAP_INSERT_SKIP_FSM 0x0002 +#define HEAP_INSERT_COMMITTED 0x0004 +#define HEAP_INSERT_FROZEN 0x0008 typedef struct BulkInsertStateData *BulkInsertState; |
