From 418611c84d004f45d92bcaa3f8e100385d96cd41 Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Fri, 5 Feb 2021 16:08:45 -0500 Subject: Generalize parallel slot result handling. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Instead of having a hard-coded behavior that we ignore missing tables and report all other errors, let the caller decide what to do by setting a callback. Mark Dilger, reviewed and somewhat revised by me. The larger patch series of which this is a part has also had review from Peter Geoghegan, Andres Freund, Álvaro Herrera, Michael Paquier, and Amul Sul, but I don't know whether any of them have reviewed this bit specifically. Discussion: http://postgr.es/m/12ED3DA8-25F0-4B68-937D-D907CFBF08E7@enterprisedb.com Discussion: http://postgr.es/m/5F743835-3399-419C-8324-2D424237E999@enterprisedb.com Discussion: http://postgr.es/m/70655DF3-33CE-4527-9A4D-DDEB582B6BA0@enterprisedb.com --- src/bin/scripts/vacuumdb.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/bin/scripts/vacuumdb.c') diff --git a/src/bin/scripts/vacuumdb.c b/src/bin/scripts/vacuumdb.c index ed320817bc4..9dc8aca29f3 100644 --- a/src/bin/scripts/vacuumdb.c +++ b/src/bin/scripts/vacuumdb.c @@ -713,6 +713,7 @@ vacuum_one_database(const ConnParams *cparams, * Execute the vacuum. All errors are handled in processQueryResult * through ParallelSlotsGetIdle. */ + ParallelSlotSetHandler(free_slot, TableCommandResultHandler, NULL); run_vacuum_command(free_slot->connection, sql.data, echo, tabname); -- cgit v1.2.3