<feed xmlns='http://www.w3.org/2005/Atom'>
<title>postgresql.git, branch REL9_6_STABLE</title>
<subtitle>This is the main PostgreSQL git repository.</subtitle>
<id>http://git.postgresql.org/cgit/postgresql.git/atom?h=REL9_6_STABLE</id>
<link rel='self' href='http://git.postgresql.org/cgit/postgresql.git/atom?h=REL9_6_STABLE'/>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/'/>
<updated>2024-11-27T03:13:59Z</updated>
<entry>
<title>If a C23 compiler is detected, try asking for C17.</title>
<updated>2024-11-27T03:13:59Z</updated>
<author>
<name>Thomas Munro</name>
</author>
<published>2024-11-27T02:43:18Z</published>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/commit/?id=70cf253d18da103864037011bead1683a96502dc'/>
<id>urn:sha1:70cf253d18da103864037011bead1683a96502dc</id>
<content type='text'>
Branches before 16 can't be compiled with a C23 compiler (see
deprecation warnings silenced by commit f9a56e72, and non-back-patchable
changes made in 16 by commit 1c27d16e).  Test __STDC_VERSION__, and if
it's above C17 then try appending -std=gnu17.  The test is done with the
user's CFLAGS, so an acceptable language version can also be configured
manually that way.

This is done in branches 15 and older, back to 9.2, per policy of
keeping them buildable with modern tools.

Discussion: https://postgr.es/m/87o72eo9iu.fsf%40gentoo.org
</content>
</entry>
<entry>
<title>Remove redundant perl version checks</title>
<updated>2024-06-26T11:29:31Z</updated>
<author>
<name>Andrew Dunstan</name>
</author>
<published>2024-06-26T11:01:47Z</published>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/commit/?id=12c8faaa7b59b99d56ddb730480645725bf4fa76'/>
<id>urn:sha1:12c8faaa7b59b99d56ddb730480645725bf4fa76</id>
<content type='text'>
Commit 4c1532763a removed some redundant uses of 'use 5.008001;' in perl
scripts, including in plperl's plc_perlboot.pl. Because it made other
changes it wasn't backpatched. However, now this is causing a failure on
back branches when built with bleeding edge perl. Therefore, backpatch
just that part of it which removed those uses, from 15 all the way down
to 9.2, which is the earliest version currently built in the buildfarm.

per report from Alexander Lakhin

Discussion: https://postgr.es/m/4cc2ee93-e03c-8e13-61ed-412e7e6ff19d@gmail.com
</content>
</entry>
<entry>
<title>Create common infrastructure for cross-version upgrade testing.</title>
<updated>2023-01-17T01:35:53Z</updated>
<author>
<name>Tom Lane</name>
</author>
<published>2023-01-17T01:35:53Z</published>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/commit/?id=3911fd55f53a930fcca6bc4889209021cc50ec2f'/>
<id>urn:sha1:3911fd55f53a930fcca6bc4889209021cc50ec2f</id>
<content type='text'>
To test pg_upgrade across major PG versions, we have to be able to
modify or drop any old objects with no-longer-supported properties,
and we have to be able to deal with cosmetic changes in pg_dump output.
Up to now, the buildfarm and pg_upgrade's own test infrastructure had
separate implementations of the former, and we had nothing but very
ad-hoc rules for the latter (including an arbitrary threshold on how
many lines of unchecked diff were okay!).  This patch creates a Perl
module that can be shared by both those use-cases, and adds logic
that deals with pg_dump output diffs in a much more tightly defined
fashion.

This largely supersedes previous efforts in commits 0df9641d3,
9814ff550, and 62be9e4cd, which developed a SQL-script-based solution
for the task of dropping old objects.  There was nothing fundamentally
wrong with that work in itself, but it had no basis for solving the
output-formatting problem.  The most plausible way to deal with
formatting is to build a Perl module that can perform editing on the
dump files; and once we commit to that, it makes more sense for the
same module to also embed the knowledge of what has to be done for
dropping old objects.

Back-patch versions of the helper module as far as 9.2, to
support buildfarm animals that still test that far back.
It's also necessary to back-patch PostgreSQL/Version.pm,
because the new code depends on that.  I fixed up pg_upgrade's
002_pg_upgrade.pl in v15, but did not look into back-patching
it further than that.

Tom Lane and Andrew Dunstan

Discussion: https://postgr.es/m/891521.1673657296@sss.pgh.pa.us
</content>
</entry>
<entry>
<title>Account for IPC::Run::result() Windows behavior change.</title>
<updated>2022-11-17T15:43:14Z</updated>
<author>
<name>Noah Misch</name>
</author>
<published>2022-11-17T15:35:06Z</published>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/commit/?id=7298b904b88598cee50e1b7649ba530811040706'/>
<id>urn:sha1:7298b904b88598cee50e1b7649ba530811040706</id>
<content type='text'>
This restores compatibility with the not-yet-released successor of
version 20220807.0.  Back-patch to 9.4, which introduced this code.

Reviewed by Andrew Dunstan.

Discussion: https://postgr.es/m/20221117061805.GA4020280@rfd.leadboat.com
</content>
</entry>
<entry>
<title>Fix compilation warnings with libselinux 3.1 in contrib/sepgsql/</title>
<updated>2022-11-09T00:40:01Z</updated>
<author>
<name>Michael Paquier</name>
</author>
<published>2022-11-09T00:40:01Z</published>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/commit/?id=b2b9881109def2be4b162149bf67dad8def53869'/>
<id>urn:sha1:b2b9881109def2be4b162149bf67dad8def53869</id>
<content type='text'>
Upstream SELinux has recently marked security_context_t as officially
deprecated, causing warnings with -Wdeprecated-declarations.  This is
considered as legacy code for some time now by upstream as
security_context_t got removed from most of the code tree during the
development of 2.3 back in 2014.

This removes all the references to security_context_t in sepgsql/ to be
consistent with SELinux, fixing the warnings.  Note that this does not
impact the minimum version of libselinux supported.

This has been applied first as 1f32136 for 14~, but no other branches
got the call.  This is in line with the recent project policy to have no
warnings in branches where builds should still be supported (9.2~ as of
today).  Per discussion with Tom Lane and Álvaro Herrera.

Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/20200813012735.GC11663@paquier.xyz
Discussion: https://postgr.es/m/20221103181028.raqta27jcuypor4l@alvherre.pgsql
Backpatch-through: 9.2
</content>
</entry>
<entry>
<title>Rename parser token REF to REF_P to avoid a symbol conflict.</title>
<updated>2022-10-16T19:27:04Z</updated>
<author>
<name>Tom Lane</name>
</author>
<published>2022-10-16T19:27:04Z</published>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/commit/?id=9bfa043a1379b121fc4ee58dcf2606e151b11b9d'/>
<id>urn:sha1:9bfa043a1379b121fc4ee58dcf2606e151b11b9d</id>
<content type='text'>
In the latest version of Apple's macOS SDK, &lt;sys/socket.h&gt;
fails to compile if "REF" is #define'd as something.
Apple may or may not agree that this is a bug, and even if
they do accept the bug report I filed, they probably won't
fix it very quickly.  In the meantime, our back branches will all
fail to compile gram.y.  v15 and HEAD currently escape the problem
thanks to the refactoring done in 98e93a1fc, but that's purely
accidental.  Moreover, since that patch removed a widely-visible
inclusion of &lt;netdb.h&gt;, back-patching it seems too likely to break
third-party code.

Instead, change the token's code name to REF_P, following our usual
convention for naming parser tokens that are likely to have symbol
conflicts.  The effects of that should be localized to the grammar
and immediately surrounding files, so it seems like a safer answer.

Per project policy that we want to keep recently-out-of-support
branches buildable on modern systems, back-patch all the way to 9.2.

Discussion: https://postgr.es/m/1803927.1665938411@sss.pgh.pa.us
</content>
</entry>
<entry>
<title>Suppress more variable-set-but-not-used warnings from clang 15.</title>
<updated>2022-09-21T17:52:38Z</updated>
<author>
<name>Tom Lane</name>
</author>
<published>2022-09-21T17:52:38Z</published>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/commit/?id=c705646b751e08d584f6eeb098f1ed002aa7b11c'/>
<id>urn:sha1:c705646b751e08d584f6eeb098f1ed002aa7b11c</id>
<content type='text'>
Mop up assorted set-but-not-used warnings in the back branches.
This includes back-patching relevant fixes from commit 152c9f7b8
the rest of the way, but there are also several cases that did not
appear in HEAD.  Some of those we'd fixed in a retail way but not
back-patched, and others I think just got rewritten out of existence
during nearby refactoring.

While here, also back-patch b1980f6d0 (PL/Tcl: Fix compiler warnings
with Tcl 8.6) into 9.2, so that that branch compiles warning-free
with modern Tcl.

Per project policy, this is a candidate for back-patching into
out-of-support branches: it suppresses annoying compiler warnings
but changes no behavior.  Hence, back-patch all the way to 9.2.

Discussion: https://postgr.es/m/514615.1663615243@sss.pgh.pa.us
</content>
</entry>
<entry>
<title>Disable -Wdeprecated-non-prototype in the back branches.</title>
<updated>2022-09-20T22:59:53Z</updated>
<author>
<name>Tom Lane</name>
</author>
<published>2022-09-20T22:59:53Z</published>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/commit/?id=ca8fd341e165e1b3f99deb07889aa58db7f8a898'/>
<id>urn:sha1:ca8fd341e165e1b3f99deb07889aa58db7f8a898</id>
<content type='text'>
There doesn't seem to be any good ABI-preserving way to silence
clang 15's -Wdeprecated-non-prototype warnings about our tree-walk
APIs.  While we've fixed it properly in HEAD, the only way to not
see hundreds of these in the back branches is to disable the
warnings.  We're not going to do anything about them, so we might
as well disable them.

I noticed that we also get some of these warnings about fmgr.c's
support for V0 function call convention, in branches before v10
where we removed that.  That's another area we aren't going to
change, so turning off the warning seems fine for that too.

Per project policy, this is a candidate for back-patching into
out-of-support branches: it suppresses annoying compiler warnings
but changes no behavior.  Hence, back-patch all the way to 9.2.

Discussion: https://postgr.es/m/CA+hUKGKpHPDTv67Y+s6yiC8KH5OXeDg6a-twWo_xznKTcG0kSA@mail.gmail.com
</content>
</entry>
<entry>
<title>Suppress variable-set-but-not-used warnings from clang 15.</title>
<updated>2022-09-20T16:04:37Z</updated>
<author>
<name>Tom Lane</name>
</author>
<published>2022-09-20T16:04:37Z</published>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/commit/?id=85c077f9e0229d5e626f66d1a10e17a95c3564ff'/>
<id>urn:sha1:85c077f9e0229d5e626f66d1a10e17a95c3564ff</id>
<content type='text'>
clang 15+ will issue a set-but-not-used warning when the only
use of a variable is in autoincrements (e.g., "foo++;").
That's perfectly sensible, but it detects a few more cases that
we'd not noticed before.  Silence the warnings with our usual
methods, such as PG_USED_FOR_ASSERTS_ONLY, or in one case by
actually removing a useless variable.

One thing that we can't nicely get rid of is that with %pure-parser,
Bison emits "yynerrs" as a local variable that falls foul of this
warning.  To silence those, I inserted "(void) yynerrs;" in the
top-level productions of affected grammars.

Per recently-established project policy, this is a candidate
for back-patching into out-of-support branches: it suppresses
annoying compiler warnings but changes no behavior.  Hence,
back-patch to 9.5, which is as far as these patches go without
issues.  (A preliminary check shows that the prior branches
need some other set-but-not-used cleanups too, so I'll leave
them for another day.)

Discussion: https://postgr.es/m/514615.1663615243@sss.pgh.pa.us
</content>
</entry>
<entry>
<title>Fix pl/perl test case so it will still work under Perl 5.36.</title>
<updated>2022-06-01T20:15:47Z</updated>
<author>
<name>Tom Lane</name>
</author>
<published>2022-06-01T20:15:47Z</published>
<link rel='alternate' type='text/html' href='http://git.postgresql.org/cgit/postgresql.git/commit/?id=d4c16184212a3a99be0b27975133df25a4adf2c0'/>
<id>urn:sha1:d4c16184212a3a99be0b27975133df25a4adf2c0</id>
<content type='text'>
Perl 5.36 has reclassified the warning condition that this test
case used, so that the expected error fails to appear.  Tweak
the test so it instead exercises a case that's handled the same
way in all Perl versions of interest.

This appears to meet our standards for back-patching into
out-of-support branches: it changes no user-visible behavior
but enables testing of old branches with newer tools.
Hence, back-patch as far as 9.2.

Dagfinn Ilmari Mannsåker, per report from Jitka Plesníková.

Discussion: https://postgr.es/m/564579.1654093326@sss.pgh.pa.us
</content>
</entry>
</feed>
