Skip to content
This repository was archived by the owner on Oct 2, 2025. It is now read-only.

Commit c02f0a7

Browse files
committed
Enable nested loop for gprestore connections
Statistics backups created in gpbackup versions starting from 1.30.5_arenadata16 have inefficient SQL for deleting existing statistics. For new backups, this issue has been fixed in 18be0cbcb255c6840a23fvide085915e0d006069f5. This patch fixes the issue for existing backups by enabling nested loop join. This should lead to a more efficient plan with an index scan instead of a seq scan.
1 parent eecb1f8 commit c02f0a7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

restore/wrappers.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ SET client_min_messages = error;
8989
SET standard_conforming_strings = on;
9090
SET default_with_oids = off;
9191
SET optimizer = off;
92+
SET enable_nestloop = on;
9293
`
9394

9495
setupQuery += "SET gp_ignore_error_table = on;\n"

0 commit comments

Comments
 (0)