aboutsummaryrefslogtreecommitdiff
path: root/src/include/access/heapam.h
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2012-06-14 10:11:16 -0400
committerRobert Haas <rhaas@postgresql.org>2012-06-14 10:11:16 -0400
commit6cd015bea38b8a59feb84bf238a880a3b503cf5f (patch)
treebe1f8b3b82791166c9dd0fa448e1ef9080eb39b4 /src/include/access/heapam.h
parenta475c6036752c26dca538632b68fd2cc592976b7 (diff)
downloadpostgresql-6cd015bea38b8a59feb84bf238a880a3b503cf5f.tar.gz
postgresql-6cd015bea38b8a59feb84bf238a880a3b503cf5f.zip
Add new function log_newpage_buffer.
When I implemented the ginbuildempty() function as part of implementing unlogged tables, I falsified the note in the header comment for log_newpage. Although we could fix that up by changing the comment, it seems cleaner to add a new function which is specifically intended to handle this case. So do that.
Diffstat (limited to 'src/include/access/heapam.h')
-rw-r--r--src/include/access/heapam.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/access/heapam.h b/src/include/access/heapam.h
index 026a19fa741..660a854b0e6 100644
--- a/src/include/access/heapam.h
+++ b/src/include/access/heapam.h
@@ -144,6 +144,7 @@ extern XLogRecPtr log_heap_visible(RelFileNode rnode, BlockNumber block,
Buffer vm_buffer, TransactionId cutoff_xid);
extern XLogRecPtr log_newpage(RelFileNode *rnode, ForkNumber forkNum,
BlockNumber blk, Page page);
+extern XLogRecPtr log_newpage_buffer(Buffer buffer);
/* in heap/pruneheap.c */
extern void heap_page_prune_opt(Relation relation, Buffer buffer,