diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2016-04-09 16:39:30 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2016-04-09 16:39:30 -0400 |
commit | 08e785436f84f8824149a2182b0cb9ce2c28e31d (patch) | |
tree | edcc85eee9bbfae0bd19d87e471d5c979ca5eabd /src/include/access/generic_xlog.h | |
parent | 80cf18910c8edf2575c306dde9ead192bdb0863a (diff) |
Get rid of GenericXLogUnregister().
This routine is unsafe as implemented, because it invalidates the page
image pointers returned by previous GenericXLogRegister() calls.
Rather than complicate the API or the implementation to avoid that,
let's just get rid of it; the use-case for having it seems much
too thin to justify a lot of work here.
While at it, do some wordsmithing on the SGML docs for generic WAL.
Diffstat (limited to 'src/include/access/generic_xlog.h')
-rw-r--r-- | src/include/access/generic_xlog.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/include/access/generic_xlog.h b/src/include/access/generic_xlog.h index 0be0591a24d..01743e38ff4 100644 --- a/src/include/access/generic_xlog.h +++ b/src/include/access/generic_xlog.h @@ -29,8 +29,7 @@ typedef struct GenericXLogState GenericXLogState; /* API for construction of generic xlog records */ extern GenericXLogState *GenericXLogStart(Relation relation); extern Page GenericXLogRegister(GenericXLogState *state, Buffer buffer, - bool isNew); -extern void GenericXLogUnregister(GenericXLogState *state, Buffer buffer); + bool isNew); extern XLogRecPtr GenericXLogFinish(GenericXLogState *state); extern void GenericXLogAbort(GenericXLogState *state); |