-
Notifications
You must be signed in to change notification settings - Fork 171
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
pg12 compatibility related changes #222
Conversation
mtuncer
commented
Feb 17, 2020
- fix the build
- revisit data file naming method. (use the old logic in pre-pg12)
PG12 does not maintain relfilenode for foreign tables. It broke cstore's default file name creation logic. New code is simpler.
Oid databaseOid = relationFileNode.dbNode; | ||
Oid relationFileOid = relationFileNode.relNode; | ||
|
||
Oid databaseOid = MyDatabaseId; | ||
StringInfo cstoreFilePath = makeStringInfo(); | ||
appendStringInfo(cstoreFilePath, "%s/%s/%u/%u", DataDir, CSTORE_FDW_NAME, |
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.
Will there need to be upgrade instructions for this?
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.
behavior is the same as long as you stay in the same PG version. We never officially supported upgrading PG. So we should be fine there