-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To support PostgreSQL v16 #155
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank!
lib/pg_btree.c
Outdated
@@ -529,6 +531,9 @@ _bt_mergeload(Spooler *self, BTWriteState *wstate, BTSpool *btspool, BTReader *b | |||
/* the preparation of merge */ | |||
itup = BTSpoolGetNextItem(btspool, NULL, &should_free); | |||
itup2 = BTReaderGetNextItem(btspool2); | |||
// #if PG_VERSION_NUM >= 160000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed this line.
bin/recovery.c
Outdated
|
||
static void GetSegmentPath(char path[MAXPGPATH], | ||
#if PG_VERSION_NUM >= 160000 | ||
RelFileLocator relNumber, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since relNumber is a member of RelFileLocator, is it better s/relNumber/rlocator/g? Be careful that relNumber exists in other codes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed relNumber to rLocator
lib/reader.c
Outdated
/* This API is published only from 9.1. | ||
* This is used for permission check, but currently pg_bulkload | ||
* is called only from super user and so the below code maybe | ||
* is not essential. */ | ||
ExecCheckRTPerms(range_table, true); | ||
#endif | ||
|
||
#if PG_VERSION_NUM >= 160000 | ||
ExecInitRangeTable(checker->estate, range_table, perminfos); | ||
checker->slot = MakeSingleTupleTableSlot(desc, &TTSOpsHeapTuple); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the line same as Line:480?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed this line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! It looks good to me.
No description provided.