diff options
| author | Peter Eisentraut | 2018-04-07 15:17:56 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2018-04-07 15:34:10 +0000 |
| commit | 5dfd1e5a6696b271a2cdee54143fbc209c88c02f (patch) | |
| tree | 9654f50fe72c84d737ad8edb4cdde339a4b36dcc /src/include/commands | |
| parent | b508a56f2f3a2d850e75a14661943d6b4dde8274 (diff) | |
Logical decoding of TRUNCATE
Add a new WAL record type for TRUNCATE, which is only used when
wal_level >= logical. (For physical replication, TRUNCATE is already
replicated via SMGR records.) Add new callback for logical decoding
output plugins to receive TRUNCATE actions.
Author: Simon Riggs <simon@2ndquadrant.com>
Author: Marco Nenciarini <marco.nenciarini@2ndquadrant.it>
Author: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Reviewed-by: Petr Jelinek <petr.jelinek@2ndquadrant.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Alvaro Herrera <alvherre@alvh.no-ip.org>
Diffstat (limited to 'src/include/commands')
| -rw-r--r-- | src/include/commands/tablecmds.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/commands/tablecmds.h b/src/include/commands/tablecmds.h index 04a961d3835..70ee3da76b8 100644 --- a/src/include/commands/tablecmds.h +++ b/src/include/commands/tablecmds.h @@ -54,6 +54,8 @@ extern void AlterRelationNamespaceInternal(Relation classRel, Oid relOid, extern void CheckTableNotInUse(Relation rel, const char *stmt); extern void ExecuteTruncate(TruncateStmt *stmt); +extern void ExecuteTruncateGuts(List *explicit_rels, List *relids, List *relids_logged, + DropBehavior behavior, bool restart_seqs); extern void SetRelationHasSubclass(Oid relationId, bool relhassubclass); |
