Autocommit with Postgres 10

Started by PG Bug reporting formalmost 8 years ago2 messagesdocs
Jump to latest
#1PG Bug reporting form
noreply@postgresql.org

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/10/static/ecpg-sql-set-autocommit.html
Description:

Hi,

I am currently using PG10, and link my C program to the libpq.5.10.so file
for client feature usage.

I get the following error after trying to set auto commit (as I did before)
:

2018-05-03 11:16:50.253 CEST [50141] ERROR: unrecognized configuration
parameter "autocommit"
2018-05-03 11:16:50.253 CEST [50141] STATEMENT: SET AUTOCOMMIT TO ON

Could you tell me how to set autocommit to ON with PG 10 client library ?

Thank you

#2Craig Ringer
craig@2ndquadrant.com
In reply to: PG Bug reporting form (#1)
Re: Autocommit with Postgres 10

You are reading the documentation for the ECPG programming interface,
not normal SQL or psql.

Please see the manual for psql.
https://www.postgresql.org/docs/current/static/app-psql.html