-
Notifications
You must be signed in to change notification settings - Fork 42
Spoc 342. Replace core-based delta apply approach with native extensible one. #272
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
base: main
Are you sure you want to change the base?
Changes from all commits
0dab8a2
f70fc20
3fc45c1
7c39bf7
e6bb068
6d70b4b
d57f344
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 |
|---|---|---|
|
|
@@ -44,11 +44,12 @@ typedef struct SpockRelation | |
| Oid idxoid; | ||
| Relation rel; | ||
| int *attmap; | ||
| bool has_delta_columns; | ||
| Oid *delta_apply_functions; | ||
|
|
||
| /* Additional cache, only valid as long as relation mapping is. */ | ||
| bool hasTriggers; | ||
|
|
||
| Oid *delta_functions; | ||
|
Member
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. I feel we should avoid changing variable names unless the original name is very confusing. It makes diffing different versions more difficult to sort through
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. Not sure I understand what it means - it is a new variable, isn't it?
Member
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. It looked like
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. Hmm, we may maintain two approaches (core-based and extension-based), but they must be kept separate. So, their delta_apply structures can't intersect. That's why they have different names. If we decide to stick to the extension-based approach, one more commit might rename everything. |
||
| bool has_delta_apply; | ||
| } SpockRelation; | ||
|
|
||
| extern void spock_relation_cache_update(uint32 remoteid, | ||
|
|
@@ -68,6 +69,8 @@ extern void spock_relation_cache_reset(void); | |
|
|
||
| extern Oid spock_lookup_delta_function(char *fname, Oid typeoid); | ||
|
|
||
| extern Oid get_replication_identity(Relation rel); | ||
|
|
||
| struct SpockTupleData; | ||
|
|
||
| #endif /* SPOCK_RELCACHE_H */ | ||
This file was deleted.
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.
Should we use capitalized SPOCK?
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.
We may capitalise the define's name - I just followed the naming example (borrowed from pgactive) to make cross-code browsing easier. We definitely shouldn't capitalise the define's value.
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.
It looks like they use
pgative_everywhere for their #defines, whereas we useSPOCK_everywhere for our existing #defines. It would be more consistent with our existing code to useSPOCK_.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.
Ok, there are no objectives from my side - it's just too trivial stuff.