I like the progression from basic use, to connection context, to transaction context. Really nice logical progression into progressive levels of granular control.
One thing I didn't understand was the wording of this suggestion:
use an autocommit connection: conn.autocommit=True, eventually as connect() parameter too;
Is this meant to convey:
use an autocommit connection: Set conn.autocommit=True (or you can provide this as a connect() parameter);
It seems much clearer to me now This makes me think that maybe it's worth trying to use an autocommit connection...
Il 15/10/2021 12:56 Daniele Varrazzo ha scritto: > On Wed, 13 Oct 2021 at 19:28, Daniele Varrazzo > <daniele.varrazzo@gmail.com> wrote: > >> Pretty much everyone comes from psycopg2, so we should definitely >> improve the docs :D > > I have expanded the documentation about transaction behaviour. > Feedback is welcome. > > https://www.psycopg.org/psycopg3/docs/basic/transactions.html > > Paolo, Daniel: I am especially keen to have your feedback as one > newcomer and the other pretty much the authority in transaction > management :) > > Cheers, > > -- Daniele