pg.ddx.io  psycopg/psycopg GitHub issues and pull requests  
help / color / mirror / Atom feed
From: DylanYoung (@DylanYoung) <noreply+DylanYoung@github.com>
To: psycopg/psycopg <noreply+psycopg-psycopg@github.com>
Subject: Re: [psycopg/psycopg] PR #1322: Add pg_lsn adapter
Date: Sat, 13 Jun 2026 01:48:59 +0000
Message-ID: <gh-psycopg-psycopg-1322-rc3407113951@github.com> (raw)
In-Reply-To: <gh-psycopg-psycopg-1322@github.com>
References: <gh-psycopg-psycopg-1322@github.com>

(on psycopg/psycopg/types/catalog.py:28)

Using __new__ provides a lot of benefits, but if the goal is loading speed, take a look at my approach using __getattr__.  I'd especially consider `__getattr__` if you're planning on decoding the logical message stream LSNs as `Lsn` classes, as you want that to be pretty fast.  

view thread (28+ messages)  latest in thread

Message-ID: <gh-psycopg-psycopg-1322-rc3407113951@github.com>
Permalink:  ../gh-psycopg-psycopg-1322-rc3407113951@github.com/

 · 


This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox