https://www.psycopg.org/docs/usage.html?highlight=gunpoint#with-statement