diff options
| author | Robert Haas | 2021-02-05 21:08:45 +0000 |
|---|---|---|
| committer | Robert Haas | 2021-02-05 21:08:45 +0000 |
| commit | 418611c84d004f45d92bcaa3f8e100385d96cd41 (patch) | |
| tree | fc7727b5a72d57a5f1bc655e023d5ae51d6cf1ea /src/bin/scripts/reindexdb.c | |
| parent | e955bd4b6c2bcdbd253837f6cf4c7520b98e69d4 (diff) | |
Generalize parallel slot result handling.
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/[email protected]
Discussion: http://postgr.es/m/[email protected]
Discussion: http://postgr.es/m/[email protected]
Diffstat (limited to 'src/bin/scripts/reindexdb.c')
| -rw-r--r-- | src/bin/scripts/reindexdb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/scripts/reindexdb.c b/src/bin/scripts/reindexdb.c index 7781fb1151a..9f072ac49ae 100644 --- a/src/bin/scripts/reindexdb.c +++ b/src/bin/scripts/reindexdb.c @@ -466,6 +466,7 @@ reindex_one_database(const ConnParams *cparams, ReindexType type, goto finish; } + ParallelSlotSetHandler(free_slot, TableCommandResultHandler, NULL); run_reindex_command(free_slot->connection, process_type, objname, echo, verbose, concurrently, true); |
