| From: | torikoshia <torikoshia(at)oss(dot)nttdata(dot)com> |
|---|---|
| To: | "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com> |
| Cc: | Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>, nagata(at)sraoss(dot)co(dot)jp, pgsql-hackers(at)lists(dot)postgresql(dot)org |
| Subject: | Re: Why is the LSN reported for pg_logical_emit_message() different from other decoded operations? |
| Date: | 2026-06-19 01:59:56 |
| Message-ID: | 81b6977d2d30e4977242207660b00b30@oss.nttdata.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 2026-06-18 17:27, Hayato Kuroda (Fujitsu) wrote:
> Dear Torikoshi-san,
>
> Sorry for the late join...
>
>> With the current behavior, consumers need to be aware that only
>> logical messages return endptr (and this does not appear to be
>> documented, so one would have to discover it through testing).
>> Then they need special handling to translate the completion LSN
>> for logical messages back to the previous processing position.
> Actually I did not recognize till I found the thread, and I'm also
> unclear
> the reason of the difference. From my perspective any blockers within
> core are not found.
>
>> For example, I wonder whether Fujitsu's 'Userlog Operation' might
>> also be affected:
>> https://www.postgresql.fastware.com/hubfs/_Global/Manuals/FEP-v17forx86-
>> UserlogOperationGuide.pdf
>>
>
> FYI, I confirmed the proprietary won't be affected by the change you
> proposed.
Thanks for your confirmation! I appreciate that.
On 2026-06-11 11:27, torikoshia wrote:
> On this point, I have started discussing with the Debezium
> community, where I originally encountered this issue. The main
> question is whether a change in PostgreSQL's behavior would be
> welcomed, or whether Debezium instead treats logical messages
> differently from other decoded records.
FYI, this discussion is still ongoing.
--
Atsushi Torikoshi
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jeff Davis | 2026-06-19 02:13:38 | Re: Avoid orphaned objects dependencies, take 3 |
| Previous Message | Chao Li | 2026-06-19 01:35:34 | Re: Fix \crosstabview to honor \pset display_true/display_false |