summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2023-02-27 07:45:44 +0100
committerPeter Eisentraut <peter@eisentraut.org>2023-02-27 07:47:46 +0100
commitb9f0e54bc955ba3f6187d238b03c9c99c576a6af (patch)
tree38e25d8a8e6bc3adb0ac3c17182c2ec63d29d5b4 /contrib
parenta6cd1fc692eff708fd42c72b03f756fa1860530e (diff)
downloadpostgresql-b9f0e54bc955ba3f6187d238b03c9c99c576a6af.tar.gz
Update types in smgr API
Change data buffer to void *, from char *, and add const where appropriate. This makes it match the File API (see also 2d4f1ba6cfc2f0a977f1c30bda9848041343e248) and stdio. Discussion: https://www.postgresql.org/message-id/flat/11dda853-bb5b-59ba-a746-e168b1ce4bdb%40enterprisedb.com
Diffstat (limited to 'contrib')
-rw-r--r--contrib/bloom/blinsert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/bloom/blinsert.c b/contrib/bloom/blinsert.c
index f81442efb3..dcd8120895 100644
--- a/contrib/bloom/blinsert.c
+++ b/contrib/bloom/blinsert.c
@@ -178,7 +178,7 @@ blbuildempty(Relation index)
*/
PageSetChecksumInplace(metapage, BLOOM_METAPAGE_BLKNO);
smgrwrite(RelationGetSmgr(index), INIT_FORKNUM, BLOOM_METAPAGE_BLKNO,
- (char *) metapage, true);
+ metapage, true);
log_newpage(&(RelationGetSmgr(index))->smgr_rlocator.locator, INIT_FORKNUM,
BLOOM_METAPAGE_BLKNO, metapage, true);