| From: | Yash Jadhav <yash(dot)jadhav8008(at)gmail(dot)com> |
|---|---|
| To: | Greg Lamberson <greg(at)lamco(dot)io> |
| Cc: | "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Extensible sync handler registration (register_sync_handler) |
| Date: | 2026-11-23 10:43:14 |
| Message-ID: | CAGsfjr6Q1XyGc1WuAJUp5V1jWHncQUG2PHCLOox5vFMYg9WuKA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
I had a question about checks for NULL callbacks. At registration, a
NULL sync_syncfiletag is already rejected with FATAL, so that case is
covered. For a NULL sync_unlinkfiletag or sync_filetagmatches, I see
these options:
1. In SyncPostCheckpoint() and RememberSyncRequest(), log a WARNING
and skip, but I guess that would cause inconsistencies, for example
with unlink.
2. At the same sites, report and crash, which would at least show the
cause of error.
There is also another way to just reject such requests, but I haven't
covered possible outcomes of doing that so I'm not sure.
What do you think? I guess 2 would be better, so the problem can't go
unnoticed, would welcome any corrections.
Also I noticed, git apply rejects two hunks of v2-0002
(src/test/modules/Makefile and meson.build) on the current master,
because master now has a test_wait_lsn entry between test_tidstore and
unsafe_tests.
Regards,
Yash
| From | Date | Subject | |
|---|---|---|---|
| Next Message | alvherre@kurilemu.de | 2026-11-23 10:43:52 | Re: Bug in logical decoding with DDL and subtransactions |
| Previous Message | wenhui qiu | 2026-11-23 10:27:52 | Re: Simplify the uniqueness proof for self-join elimination |