From: jerch (@jerch) <noreply+jerch@github.com>
To: psycopg/psycopg <noreply+psycopg-psycopg@github.com>
Subject: Re: [psycopg/psycopg] issue #1157: proposal: retrieve range value dumper from inner_oid setting
Date: Sat, 18 Oct 2025 12:18:16 +0000
Message-ID: <gh-psycopg-psycopg-1157-c3418382699@github.com> (raw)
In-Reply-To: <gh-psycopg-psycopg-1157@github.com>
References: <gh-psycopg-psycopg-1157@github.com>
@dvarrazzo Just looked at the text dumper - quite a regexp'ed beast, so a cython variant will prolly not show much of a benefit. Also my original issue using the wrong internal dumper does not exist with the text format.
I agree with you, that range types are rarely used. Still we use them quite alot, as they tend to perform better for range or contain queries than with separated start/end columns (no clue if there is a general pro/contra sentiment out there regarding range fields).
And plz dont worry for not looking at it yet, it is still pretty early code and quite the playground mess still. Also no explicit tests yet 😅 I'd just need your early feedback, whether I am completely on the wrong track, or if you'd consider something like that to be added later on.