Does autocommit mean the same in PostgreSQL and Psycopg2?
From PostgreSQL manual
By default (without BEGIN ), PostgreSQL executes transacti
Every PostgreSQL statement is running in a transaction.
PostgreSQL itself only knows autocommit mode, which means that each statement will run in its own transaction if you don't start a transaction explicitly.
Statements like VACUUM cannot run in the same transaction with other statements.
If you are not using autocommit in psycopg2, the driver has to simulate non-autocommit mode by explicitly starting a transaction when the first statement is run.