diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2013-12-04 00:10:47 +0200 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2013-12-04 00:10:47 +0200 |
commit | 9e857436ef7dff8fb8a0bf43cfe62650e2be6be9 (patch) | |
tree | e365d1848d19c0ff9180d7a1fa05ba978aae486a /src/backend/access/gist/gist.c | |
parent | 22122c83f1331d03e8317afbfcfbb65bef9c82d2 (diff) | |
download | postgresql-9e857436ef7dff8fb8a0bf43cfe62650e2be6be9.tar.gz |
Don't include unused space in LOG_NEWPAGE records.
This is the same trick we use when taking a full page image of a buffer
passed to XLogInsert.
Diffstat (limited to 'src/backend/access/gist/gist.c')
-rw-r--r-- | src/backend/access/gist/gist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/gist/gist.c b/src/backend/access/gist/gist.c index 99cbcaa58e..815ad5ceee 100644 --- a/src/backend/access/gist/gist.c +++ b/src/backend/access/gist/gist.c @@ -83,7 +83,7 @@ gistbuildempty(PG_FUNCTION_ARGS) START_CRIT_SECTION(); GISTInitBuffer(buffer, F_LEAF); MarkBufferDirty(buffer); - log_newpage_buffer(buffer); + log_newpage_buffer(buffer, true); END_CRIT_SECTION(); /* Unlock and release the buffer */ |