Re: psycopg3 and adaptation choices
От | Daniele Varrazzo |
---|---|
Тема | Re: psycopg3 and adaptation choices |
Дата | |
Msg-id | CA+mi_8aWb9avqTtm=MZcNzUVvKvvWYS7BzcuCapgA9wnNFRyGQ@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: psycopg3 and adaptation choices (Christophe Pettus <xof@thebuild.com>) |
Ответы |
Re: psycopg3 and adaptation choices
Re: psycopg3 and adaptation choices |
Список | psycopg |
On Tue, 10 Nov 2020 at 03:22, Christophe Pettus <xof@thebuild.com> wrote: > > > On Nov 9, 2020, at 19:20, Daniele Varrazzo <daniele.varrazzo@gmail.com> wrote: > > > > Choices to cast Python ``int`` type: > > Is it absurd to make the choice at execution time, based on the actual value of the Python int? I've been thinking a lot about it. I haven't completely ruled it out, but there are a few cases in which having different oids for the same query gets in the way. One that comes to mind is with prepared statements, either explicit (which I haven't exposed yet, but it's like the #1 request for a new feature), or implicit (currently using them to implement 'executemany()'). However I might be overestimating these issues, yes. I guess I should give an overview of the whole adaptation system: I'll try and write its documentation in the next few days. I have to start with the documentation somewhere... -- Daniele
В списке psycopg по дате отправления: