mirror of
https://github.com/postgres/postgres.git
synced 2025-08-21 10:42:50 +03:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user