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

Only enable postgresql support when cgo is enabled as it is required #2068

Merged
merged 1 commit into from
Feb 14, 2023

Conversation

anuraaga
Copy link
Contributor

@anuraaga anuraaga commented Feb 14, 2023

Fixes #2050

postgresql parser requires cgo to build the native parser library, which can cause build issues such as #1956. Currently there is no way to disable support when it is not needed and the build issues can cause a problem. With this change, CGO_ENABLED=0 can be used to work with the other parsers and avoid build issues.

@@ -1,5 +1,5 @@
//go:build windows
// +build windows
//go:build windows || !cgo
Copy link
Contributor Author

@anuraaga anuraaga Feb 14, 2023

Choose a reason for hiding this comment

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

Had to rename this file since _windows was implicitly causing the file to only be used on windows, independent of the build tag

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.

Build tags to exclude postgresql engine
2 participants