pgsql: Fix busted logic for parallel lock grouping in TopoSort().

2019-07-29 Thread Tom Lane
Fix busted logic for parallel lock grouping in TopoSort(). A "break" statement erroneously left behind by commit a1c1af2a1 caused TopoSort to do the wrong thing if a lock's wait list contained multiple members of the same locking group. Because parallel workers don't normally need any locks not a

pgsql: Fix busted logic for parallel lock grouping in TopoSort().

2019-07-29 Thread Tom Lane
Fix busted logic for parallel lock grouping in TopoSort(). A "break" statement erroneously left behind by commit a1c1af2a1 caused TopoSort to do the wrong thing if a lock's wait list contained multiple members of the same locking group. Because parallel workers don't normally need any locks not a

pgsql: Fix busted logic for parallel lock grouping in TopoSort().

2019-07-29 Thread Tom Lane
Fix busted logic for parallel lock grouping in TopoSort(). A "break" statement erroneously left behind by commit a1c1af2a1 caused TopoSort to do the wrong thing if a lock's wait list contained multiple members of the same locking group. Because parallel workers don't normally need any locks not a

pgsql: Fix busted logic for parallel lock grouping in TopoSort().

2019-07-29 Thread Tom Lane
Fix busted logic for parallel lock grouping in TopoSort(). A "break" statement erroneously left behind by commit a1c1af2a1 caused TopoSort to do the wrong thing if a lock's wait list contained multiple members of the same locking group. Because parallel workers don't normally need any locks not a

pgsql: Fix busted logic for parallel lock grouping in TopoSort().

2019-07-29 Thread Tom Lane
Fix busted logic for parallel lock grouping in TopoSort(). A "break" statement erroneously left behind by commit a1c1af2a1 caused TopoSort to do the wrong thing if a lock's wait list contained multiple members of the same locking group. Because parallel workers don't normally need any locks not a

pgsql: Fix memory leak coming from simple lists built in reindexdb

2019-07-29 Thread Michael Paquier
Fix memory leak coming from simple lists built in reindexdb When building a list of relations for a parallel processing of a schema or a database (or just a single-entry list for the non-parallel case with the database name), the list is allocated and built on-the-fly for each database processed,