-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
137072: sql: adjust physical planning heuristics around scans, sorts, and aggregations r=yuzefovich a=yuzefovich This PR adjusts the physical planning heuristics for scans, sorts, and aggregations so that the plan distribution is forced if a large set of rows (at least 10k or 1k, depending on the context, adjustable via session variables) is processed. We now: - will **stop** distributing _small_ full scans, sorts, and aggregations - will **start** distributing _large_ constrained scans and top K sorts. See each commit for details. Fixes: #75178. Fixes: #135898. 137234: sqlsmith: extend PLpgSQL support r=yuzefovich a=yuzefovich **cmd/smith: add an option to only generate UDFs** This can be helpful when extending PLpgSQL support in sqlsmith. Release note: None **sqlsmith: extend PLpgSQL support** This commit adds support for WHILE and FOR (int) loops as well as SELECT INTO / RETURNING INTO variant of statements. Addresses: #106368. Epic: None Release note: None Co-authored-by: Yahor Yuzefovich <[email protected]>
- Loading branch information
Showing
26 changed files
with
600 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.