Skip to content

Conversation

@shinyaaa
Copy link
Contributor

@shinyaaa shinyaaa commented Aug 5, 2025

Hi,

I have added support for PostgreSQL 18.
Please see the individual commit messages for details.

Closes #172

@shinyaaa shinyaaa changed the title Add support PostgreSQL18 Add support for PostgreSQL18 Aug 5, 2025
#endif
#endif

#ifdef HAVE_LONG_INT_64
Copy link
Contributor

Choose a reason for hiding this comment

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

pg17まだ#ifdef HAVE_LONG_INT_64利用しているようですね
https://github.com/postgres/postgres/blob/498b163a161e2a545a327ae5604682d5e00f3dfa/src/include/c.h#L520

こちらの修正を見ると、正しいように見えます
Use <stdint.h> and <inttypes.h> for c.h integers.

分岐とか入れたほうがよさそうですかね?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

SIZEOF_LONG is defined at ./configure, regardless of the PostgreSQL version. Therefore, it is safe to use #if SIZEOF_LONG == 8 in any version of PostgreSQL.

@shinyaaa shinyaaa merged commit 9049508 into ossc-db:master Jan 8, 2026
10 checks passed
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 error against PostgreSQL 18

2 participants