Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional deparser fixes for Postgres 16 #229

Merged
merged 3 commits into from
Dec 22, 2023
Merged

Conversation

lfittl
Copy link
Member

@lfittl lfittl commented Dec 22, 2023

On top of #225.

This makes all SQL contained in Postgres 16 regression tests work successfully with the deparser.

@lfittl lfittl requested a review from msepga December 22, 2023 09:37
@@ -246,89 +251,144 @@ static void deparseAnyNameSkipLast(StringInfo str, List *parts)
}
}

// "a_expr" / "b_expr" in gram.y
static void deparseExpr(StringInfo str, Node *node)
Copy link
Member Author

@lfittl lfittl Dec 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This refactoring maps the deparser handling of a/b/c type expressions closer to how gram.y is written, and helps us only add parentheses around a_expr type expressions when needed (i.e. when they are used within the context of a c_expr).

@lfittl lfittl mentioned this pull request Dec 22, 2023
3 tasks
@lfittl lfittl changed the base branch from 16-latest-dev to 16-latest December 22, 2023 23:05
Additionally add missing regression tests, except for sqljson, which
needs additional work.
This seems acceptable performance wise, and gives additional context.
@lfittl lfittl merged commit 9ff3c5b into 16-latest Dec 22, 2023
16 checks passed
@lfittl lfittl deleted the 16-latest-dev-deparser branch December 22, 2023 23:40
msepga added a commit that referenced this pull request Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants