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

Commit e2ed65e

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 statements. For new backups, this issue has been fixed in the previous commit. 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 e2ed65e

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)