8000 Fix Windows linkage errors by adding PGDLLEXPORT to function declarations by yuta-masano · Pull Request #139 · sraoss/pg_ivm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix Windows linkage errors by adding PGDLLEXPORT to function declarations #139

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

Merged
merged 1 commit into from
May 26, 2025

Conversation

yuta-masano
Copy link
Contributor

Summary

Fix build errors on Windows by adding PGDLLEXPORT to some function declarations in pg_ivm.h.

Details

This PR adds the PGDLLEXPORT macro to the declarations of several functions (IVM_immediate_before, IVM_immediate_maintenance, ivm_visible_in_prestate) in pg_ivm.h.
This resolves linkage errors that occurred when building pg_ivm on Windows with PostgreSQL 17.4 and Meson, due to mismatches between the function declarations and their definitions.

References

…ions

The following functions in pg_ivm.h are now explicitly marked with
PGDLLEXPORT:

- IVM_immediate_before
- IVM_immediate_maintenance
- ivm_visible_in_prestate

This change resolves linkage mismatches between function declarations in
the header and their definitions using PG_FUNCTION_INFO_V1 in the
implementation file, which caused build failures on Windows
environments.
@yugo-n yugo-n self-requested a review May 20, 2025 05:58
Copy link
Collaborator
@yugo-n yugo-n left a comment

Choose a reason for hiding this comment

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

I confirmed that the same errors and they were fixed by this patch.

@yugo-n yugo-n merged commit 49b52bc into sraoss:main May 26, 2025
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
0