diff options
| author | Tom Lane | 2003-05-14 03:26:03 +0000 |
|---|---|---|
| committer | Tom Lane | 2003-05-14 03:26:03 +0000 |
| commit | f85f43dfb5b9043ea6b01d8b824c195cd7f9ed3c (patch) | |
| tree | 149a8221767ed2e9c63adc58cc88c4d8faca5381 /contrib/reindexdb | |
| parent | d9b679c13a820eb7b464a1eeb1f177c3fea13ece (diff) | |
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.
Diffstat (limited to 'contrib/reindexdb')
| -rw-r--r-- | contrib/reindexdb/reindexdb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/reindexdb/reindexdb b/contrib/reindexdb/reindexdb index f0dd79930a3..b1cea9201a6 100644 --- a/contrib/reindexdb/reindexdb +++ b/contrib/reindexdb/reindexdb @@ -1,6 +1,6 @@ #!/bin/sh # -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- # -# Package : reindexdb Version : $Revision: 1.3 $ +# Package : reindexdb Version : $Revision: 1.4 $ # Date : 05/08/2002 Author : Shaun Thomas # Req : psql, sh, perl, sed Type : Utility # @@ -193,11 +193,11 @@ fi # If index was set, reindex that index. if [ "$index" ]; then - $PSQL $PSQLOPT $ECHOOPT -c "SET autocommit TO 'on';REINDEX INDEX $index" -d $dbname + $PSQL $PSQLOPT $ECHOOPT -c "REINDEX INDEX $index" -d $dbname # Ok, no index. Is there a specific table to reindex? elif [ "$table" ]; then - $PSQL $PSQLOPT $ECHOOPT -c "SET autocommit TO 'on';REINDEX TABLE \"$table\"" -d $dbname + $PSQL $PSQLOPT $ECHOOPT -c "REINDEX TABLE \"$table\"" -d $dbname # No specific table, no specific index, either we have a specific database, # or were told to do all databases. Do it! @@ -213,9 +213,9 @@ else # Ok, reindex every table in the database. Use the same method # we used to get a list of databases, and get a list of tables in this # database that we may reindex. - tables=`$PSQL $PSQLOPT -q -t -A -d $db -c "SET autocommit TO 'on';$sql"` + tables=`$PSQL $PSQLOPT -q -t -A -d $db -c "$sql"` for tab in $tables; do - $PSQL $PSQLOPT $ECHOOPT -c "SET autocommit TO 'on';REINDEX TABLE \"$tab\"" -d $db + $PSQL $PSQLOPT $ECHOOPT -c "REINDEX TABLE \"$tab\"" -d $db done done |
