You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Backward compatibility of PostgreSQL includes #877
I've started to build extensions for PostgreSQL 19 (#872) on a macOS 15 VM. Some of them no longer build because of a compiler warning: error: 'format' attribute argument not supported: syslog.
The root cause seems to be a difference in pg_config.h:
This is probably because PG 18 is built with macOS 14 whereas PG 19 is built with macOS 26. Maybe the __syslog__ attribute was introduced in macOS 26?
With regard to extension installers, that probably just means we need to build them on macOS 26.
However, I wonder if this has implications for our users? Can they still build things like the pg ruby gem, or psycopg2 against Postgres.app on older macOS versions?
Good catch. I've done some experiments on macOS 12 against the latests builds of PostgreSQL 19:
Installing and using psycopg2 and psycopg (3) did not show any warning nor error.
When manually building extensions (tried with pg_cron and pg_curl) the result depend on their makefile. If there is a PG_C*FLAGS that includes -Werror, the build fails on the attribute warning you've mentioned. If I remove this, the warning is not promoted to an error and the compilation is successful, as are my minimal functional tests. I cannot judge what effect it has to ignore this warning. The makefile.global which is included by pgxs does not contain the -Werror parameter.
However, on macOS 12 several other CLFAGS are included in makefile.global that are not supported by the toolchain and are generating warnings (or errors with -Werror): -fexcess-precision=standard -Wno-cast-function-type-strict -Wno-format-truncation. So when using older compiler toolchains, some need for manual adjustments seems to be expected anyhow.
Activity
tbussmann commentedon Oct 14, 2026
Good catch. I've done some experiments on macOS 12 against the latests builds of PostgreSQL 19:
Installing and using
psycopg2andpsycopg(3) did not show any warning nor error.When manually building extensions (tried with
pg_cronandpg_curl) the result depend on their makefile. If there is aPG_C*FLAGSthat includes-Werror, the build fails on the attribute warning you've mentioned. If I remove this, the warning is not promoted to an error and the compilation is successful, as are my minimal functional tests. I cannot judge what effect it has to ignore this warning. Themakefile.globalwhich is included bypgxsdoes not contain the-Werrorparameter.However, on macOS 12 several other
CLFAGSare included inmakefile.globalthat are not supported by the toolchain and are generating warnings (or errors with-Werror):-fexcess-precision=standard -Wno-cast-function-type-strict -Wno-format-truncation. So when using older compiler toolchains, some need for manual adjustments seems to be expected anyhow.