From: dvarrazzo (@dvarrazzo) <noreply+dvarrazzo@github.com>
To: psycopg/psycopg <noreply+psycopg-psycopg@github.com>
Subject: Re: [psycopg/psycopg] PR #1322: Add pg_lsn adapter
Date: Thu, 11 Jun 2026 01:48:39 +0000
Message-ID: <gh-psycopg-psycopg-1322-c4676448570@github.com> (raw)
In-Reply-To: <gh-psycopg-psycopg-1322@github.com>
References: <gh-psycopg-psycopg-1322@github.com>
@DylanYoung
> I'll update my PR with the missing magic methods
Please note that not necessarily all catalog types need implementing complete arithmetic. I haven't looked into the semantics of each of the types in your MR and I don't have it fresh on top of my head. Maybe not all those types represent an Euclidean space like LSNs do (i.e. supporting LSN - LSN -> int, LSN + int -> LSN operators).