-
Notifications
You must be signed in to change notification settings - Fork 761
Bump PG versions to 17.6, 16.10, 15.14 #8142
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3288,7 +3288,9 @@ InsertNodeRow(int nodeid, char *nodeName, int32 nodePort, NodeMetadata *nodeMeta | |
| Int32GetDatum(nodeMetadata->nodeprimarynodeid); | ||
| HeapTuple heapTuple = heap_form_tuple(tupleDescriptor, values, isNulls); | ||
|
|
||
| CATALOG_INSERT_WITH_SNAPSHOT(pgDistNode, heapTuple); | ||
| PushActiveSnapshot(GetTransactionSnapshot()); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nitpick: we may reduce code duplication by similar like or more complex but more generic and can be used later as well
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Prefer to go with Postgres approach postgres/postgres@706054b#diff-d373fb790605aded212c2e3a0fbe8c015d110077ff46c07d0a6d6647a2d7e928 |
||
| CatalogTupleInsert(pgDistNode, heapTuple); | ||
| PopActiveSnapshot(); | ||
|
|
||
| CitusInvalidateRelcacheByRelid(DistNodeRelationId()); | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
@naisila could you please tell why PushActiveSnapshot/PopActiveSnapshot are inside the loop rather than outside
Is it possible to do it this way to save resources?
your code:
Thank you!