mirror of
https://github.com/postgres/postgres.git
synced 2025-07-21 16:02:15 +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:
contrib
adddepend
array
btree_gist
chkpass
cube
dbase
dblink
dbmirror
earthdistance
findoidjoins
fulltextindex
fuzzystrmatch
intagg
intarray
isbn_issn
lo
ltree
miscutil
noupdate
oid2name
pg_dumplo
pgbench
pgcrypto
pgstattuple
reindexdb
rtree_gist
seg
spi
tablefunc
tsearch
userlock
vacuumlo
xml
doc/src/sgml
src
backend
access
transam
bootstrap
catalog
commands
tcop
utils
bin
pg_dump
psql
scripts
include
access
test
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/indexcmds.c,v 1.98 2003/05/02 20:54:33 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/indexcmds.c,v 1.99 2003/05/14 03:26:01 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -769,17 +769,16 @@ ReindexDatabase(const char *dbname, bool force, bool all)
|
||||
heap_close(relationRelation, AccessShareLock);
|
||||
|
||||
/* Now reindex each rel in a separate transaction */
|
||||
CommitTransactionCommand(true);
|
||||
CommitTransactionCommand();
|
||||
for (i = 0; i < relcnt; i++)
|
||||
{
|
||||
StartTransactionCommand(true);
|
||||
StartTransactionCommand();
|
||||
SetQuerySnapshot(); /* might be needed for functional index */
|
||||
if (reindex_relation(relids[i], force))
|
||||
elog(NOTICE, "relation %u was reindexed", relids[i]);
|
||||
CommitTransactionCommand(true);
|
||||
CommitTransactionCommand();
|
||||
}
|
||||
/* Tell xact.c not to chain the upcoming commit */
|
||||
StartTransactionCommand(true);
|
||||
StartTransactionCommand();
|
||||
|
||||
MemoryContextDelete(private_context);
|
||||
}
|
||||
|
Reference in New Issue
Block a user