Remove another useless snapshot creation.
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 19 Mar 2008 21:14:20 +0000 (21:14 +0000)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 19 Mar 2008 21:14:20 +0000 (21:14 +0000)
src/backend/postmaster/autovacuum.c

index bd2d2731399b77e89bf5fee0f4db877b09753861..d4ffe4b5bc4297a37e85366b34caec87bcd140a4 100644 (file)
@@ -1850,9 +1850,6 @@ do_autovacuum(void)
        /* Start a transaction so our commands have one to play into. */
        StartTransactionCommand();
 
-       /* functions in indexes may want a snapshot set */
-       ActiveSnapshot = CopySnapshot(GetTransactionSnapshot());
-
        /*
         * Clean up any dead statistics collector entries for this DB. We always
         * want to do this exactly once per DB-processing cycle, even if we find