summaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-12-04 00:10:47 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-12-04 00:10:47 +0200
commit9e857436ef7dff8fb8a0bf43cfe62650e2be6be9 (patch)
treee365d1848d19c0ff9180d7a1fa05ba978aae486a /src/backend/access/gist/gist.c
parent22122c83f1331d03e8317afbfcfbb65bef9c82d2 (diff)
downloadpostgresql-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.c2
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 */