mirror of
https://github.com/postgres/postgres.git
synced 2025-06-23 14:01:44 +03:00
Backend support for autocommit removed, per recent discussions. The
only remnant of this failed experiment is that the server will take SET AUTOCOMMIT TO ON. Still TODO: provide some client-side autocommit logic in libpq.
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.71 2003/05/03 22:18:59 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.72 2003/05/14 03:26:02 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -206,7 +206,6 @@ RestoreArchive(Archive *AHX, RestoreOptions *ropt)
|
||||
sav = SetOutput(AH, ropt->filename, ropt->compression);
|
||||
|
||||
ahprintf(AH, "--\n-- PostgreSQL database dump\n--\n\n");
|
||||
ahprintf(AH, "SET autocommit TO 'on';\n\n");
|
||||
|
||||
/*
|
||||
* Drop the items at the start, in reverse order
|
||||
@ -2122,7 +2121,6 @@ _reconnectAsUser(ArchiveHandle *AH, const char *dbname, const char *user)
|
||||
dbname ? fmtId(dbname) : "-");
|
||||
appendPQExpBuffer(qry, " %s\n\n",
|
||||
fmtId(user));
|
||||
appendPQExpBuffer(qry, "SET autocommit TO 'on';\n\n");
|
||||
|
||||
ahprintf(AH, qry->data);
|
||||
|
||||
|
Reference in New Issue
Block a user