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

Add pg10 compatibility for ProcessUtilityHook #2

Merged
merged 1 commit into from
Apr 20, 2017

Conversation

mpalmi
Copy link
Collaborator

@mpalmi mpalmi commented Apr 20, 2017

Commit postgres/postgres@ab1f0c8 introduced the use of PlannedStmt in the
ProcessUtilityHook. This change only affects versions >9.6.

Commit postgres/postgres@01fd6f8 introduced an extra argument (QueryEnvironment) in the
ProcessUtilityHook. This change only affects versions >9.6.

Rather than check for both changes, we assume that the PlannedStatement feature
encapsulates both >9.6 changes to avoid further ifdef magic.

Change tested with pgxs pointed at both pg10 and pg9.6.

Commit ab1f0c8 introduced the use of PlannedStmt in the
ProcessUtilityHook. This change only affects versions >9.6.

Commit 01fd6f8 introduced an extra argument (QueryEnvironment) in the
ProcessUtilityHook. This change only affects versions >9.6.

Rather than check for both changes, we assume that PlannedStmt usage
signifies both >9.6 changes to avoid further ifdef magic.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants