mirror of
https://github.com/postgres/postgres.git
synced 2025-09-09 13:09:39 +03:00
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
2d4f1ba6cf
) and stdio.
Discussion: https://www.postgresql.org/message-id/flat/11dda853-bb5b-59ba-a746-e168b1ce4bdb%40enterprisedb.com
This commit is contained in:
@@ -170,7 +170,7 @@ spgbuildempty(Relation index)
|
||||
*/
|
||||
PageSetChecksumInplace(page, SPGIST_METAPAGE_BLKNO);
|
||||
smgrwrite(RelationGetSmgr(index), INIT_FORKNUM, SPGIST_METAPAGE_BLKNO,
|
||||
(char *) page, true);
|
||||
page, true);
|
||||
log_newpage(&(RelationGetSmgr(index))->smgr_rlocator.locator, INIT_FORKNUM,
|
||||
SPGIST_METAPAGE_BLKNO, page, true);
|
||||
|
||||
@@ -179,7 +179,7 @@ spgbuildempty(Relation index)
|
||||
|
||||
PageSetChecksumInplace(page, SPGIST_ROOT_BLKNO);
|
||||
smgrwrite(RelationGetSmgr(index), INIT_FORKNUM, SPGIST_ROOT_BLKNO,
|
||||
(char *) page, true);
|
||||
page, true);
|
||||
log_newpage(&(RelationGetSmgr(index))->smgr_rlocator.locator, INIT_FORKNUM,
|
||||
SPGIST_ROOT_BLKNO, page, true);
|
||||
|
||||
@@ -188,7 +188,7 @@ spgbuildempty(Relation index)
|
||||
|
||||
PageSetChecksumInplace(page, SPGIST_NULL_BLKNO);
|
||||
smgrwrite(RelationGetSmgr(index), INIT_FORKNUM, SPGIST_NULL_BLKNO,
|
||||
(char *) page, true);
|
||||
page, true);
|
||||
log_newpage(&(RelationGetSmgr(index))->smgr_rlocator.locator, INIT_FORKNUM,
|
||||
SPGIST_NULL_BLKNO, page, true);
|
||||
|
||||
|
Reference in New Issue
Block a user