| From: | Nadav Shatz <nadav(at)tailorbrands(dot)com> |
|---|---|
| To: | Tatsuo Ishii <ishii(at)postgresql(dot)org> |
| Cc: | pgpool-hackers(at)lists(dot)postgresql(dot)org |
| Subject: | Re: Proposal: Recent mutated table tracking in memory |
| Date: | 2026-01-31 17:11:14 |
| Message-ID: | CACeKOO1W=NxxqxBFtVa++skatF67DawxJwF5R6iMnqYw=OHoHA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgpool-hackers |
Thank you for the comments!
I agree with all of them. Let me know what you think of the changes and new
naming.
Please see attached another version of the patch.
On Fri, Jan 30, 2026 at 10:10 AM Tatsuo Ishii <ishii(at)postgresql(dot)org> wrote:
> > yes indeed, please find attached.
>
> Thanks. Here some comments on the patch:
>
> - It seems you use a table name (and schema) for a key to identify the
> TableMutationEntry and other objects. I think you should use table
> oids for the key because the same table name could exists in
> different schema. Moreover, if the database is different from the
> database when the map entry was created, a map look up could return
> incorrect result. In summary the key should be table oid and
> database oid (which is already done by query cache subsystem).
>
> - In the patch spin lock primitives are introduced. Why can't we use
> semaphore instead? A spin lock uses busy loop, which could increase
> the system load if the duration of locking becomes longer.
>
> - What would happen if the leader watchdog fails and other watchdog
> node take the place of the leader role?
>
> - pool_memory_map_get_ttl() and pool_memory_map_get_stats() are
> defined but are not used anywhere. Why do you have them?
>
> - I think "memory_map" is a too generic name. Can we use more specific
> name for the feature?
>
> Best regards,
> --
> Tatsuo Ishii
> SRA OSS K.K.
> English: http://www.sraoss.co.jp/index_en/
> Japanese:http://www.sraoss.co.jp
>
--
Nadav Shatz
Tailor Brands | CTO
| Attachment | Content-Type | Size |
|---|---|---|
| mutated_table.patch | application/octet-stream | 76.5 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tatsuo Ishii | 2026-02-03 07:43:53 | Re: Proposal: Recent mutated table tracking in memory |
| Previous Message | Tatsuo Ishii | 2026-01-30 08:09:50 | Re: Proposal: Recent mutated table tracking in memory |