Content-Length: 262116 | pFad | http://github.com/postgrespro/postgres/commit/3ae3c18b362817f9412c380539f1a16c7abb79c9

EB Fix error status of vacuumdb when multiple jobs are used · postgrespro/postgres@3ae3c18 · GitHub
Skip to content

Commit 3ae3c18

Browse files
committed
Fix error status of vacuumdb when multiple jobs are used
When running a batch of VACUUM or ANALYZE commands on a given database, there were cases where it is possible to have vacuumdb not report an error where it actually should, leading to incorrect status results. Author: Julien Rouhaud Reviewed-by: Amit Kapila, Michael Paquier Discussion: https://postgr.es/m/CAOBaU_ZuTwz7CtqLYJ1Ouuh272bTQPLN8b1bAPk0bCBm4PDMTQ@mail.gmail.com Backpatch-through: 9.5
1 parent d95e36d commit 3ae3c18

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bin/scripts/vacuumdb.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,10 @@ vacuum_one_database(const char *dbname, vacuumingOptions *vacopts,
712712
for (j = 0; j < concurrentCons; j++)
713713
{
714714
if (!GetQueryResult((slots + j)->connection, progname))
715+
{
716+
failed = true;
715717
goto finish;
718+
}
716719
}
717720
}
718721

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/3ae3c18b362817f9412c380539f1a16c7abb79c9

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy