-
Notifications
You must be signed in to change notification settings - Fork 463
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
Undo walloging replorgin file on checkpoint #8794
Conversation
3787 tests run: 3681 passed, 0 failed, 106 skipped (full report)Code coverage* (full report)
* collected from Rust tests only The comment gets automatically updated with the latest test results
e283125 at 2024-08-28T20:50:26.639Z :recycle: |
Why the added |
Do we have a plan for how to eventually remove those obsolete |
b9b37c6
to
066d295
Compare
066d295
to
c8563c7
Compare
Sorry, removed unintended changes. |
Any reason for it? Can extra ~100 bytes somehow compensate efforts needed to remove them? |
It's not urgent, but it might cause surprises later, after everyone has already forgotten about them. |
I can still see the extra 'break' there. |
Sorry, looks like I didn't push changes in neon repo. |
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.
A few more trivial remnants of this:
$ git diff REL_16_4..origin/pr/472 src/backend/replication/logical/origin.c
diff --git a/src/backend/replication/logical/origin.c b/src/backend/replication/logical/origin.c
index b0255ffd25a..739030a87e1 100644
--- a/src/backend/replication/logical/origin.c
+++ b/src/backend/replication/logical/origin.c
@@ -83,6 +83,7 @@
#include "nodes/execnodes.h"
#include "pgstat.h"
#include "replication/logical.h"
+#include "replication/message.h"
#include "replication/origin.h"
#include "storage/condition_variable.h"
#include "storage/copydir.h"
@@ -615,6 +616,7 @@ CheckPointReplicationOrigin(void)
errmsg("could not write to file \"%s\": %m",
tmppath)));
}
+
COMP_CRC32C(crc, &magic, sizeof(magic));
/* prevent concurrent creations/drops */
Other than that, LGTM
Problem
See #8620
Summary of changes
Remove walloping of replorigin file because it is reconstructed by PS
Checklist before requesting a review
Checklist before merging