PostgreSQL Weekly News - December 27, 2020

From: PWN via PostgreSQL Announce <announce-noreply(at)postgresql(dot)org>
To: PostgreSQL Announce <pgsql-announce(at)lists(dot)postgresql(dot)org>
Subject: PostgreSQL Weekly News - December 27, 2020
Date: 2020-12-27 22:14:09
Message-ID: 160910724906.682.12551297436557189359@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-announce

# PostgreSQL Weekly News - December 27, 2020

# PostgreSQL Product News

Pgpool-II 4.2.1, a connection pooler and statement replication system for
PostgreSQL, released.
[https://www.pgpool.net/docs/42/en/html/release-4-2-1.html](https://www.pgpool.net/docs/42/en/html/release-4-2-1.html)

Postgres Operator v1.6.0 released.
[https://github.com/zalando/postgres-operator](https://github.com/zalando/postgres-operator)

# PostgreSQL Jobs for December

[https://archives.postgresql.org/pgsql-jobs/2020-12/](https://archives.postgresql.org/pgsql-jobs/2020-12/)

# PostgreSQL in the News

Planet PostgreSQL: [http://planet.postgresql.org/](http://planet.postgresql.org/)

PostgreSQL Weekly News is brought to you this week by David Fetter

Submit news and announcements by Sunday at 3:00pm PST8PDT to david(at)fetter(dot)org(dot)

# Applied Patches

Tom Lane pushed:

- Doc: fix description of how to use src/tutorial files. The separate "cd"
command before invoking psql made sense (or at least I thought so) when it was
added in commit ed1939332. But 4e3a61635 removed the supporting text that
explained when to use it, making it just confusing. So drop it. Also switch
from four-dot to three-dot filler for the unsupplied part of the path, since
at least one person has read the four-dot filler as a typo for "../..". And
fix these/those inconsistency. Discussion:
[https://postgr.es/m/160837647714.673.5195186835607800484@wrigleys.postgresql.org](https://postgr.es/m/160837647714.673.5195186835607800484@wrigleys.postgresql.org)
[https://git.postgresql.org/pg/commitdiff/eea1e08cfc95bb7e1b7e9f515e73cf75adf147e3](https://git.postgresql.org/pg/commitdiff/eea1e08cfc95bb7e1b7e9f515e73cf75adf147e3)

- Remove "invalid concatenation of jsonb objects" error case. The jsonb || jsonb
operator arbitrarily rejected certain combinations of scalar and non-scalar
inputs, while being willing to concatenate other combinations. This was of
course quite undocumented. Rather than trying to document it, let's just
remove the restriction, creating a uniform rule that unless we are handling an
object-to-object concatenation, non-array inputs are converted to one-element
arrays, resulting in an array-to-array concatenation. (This does not change
the behavior for any case that didn't throw an error before.) Per complaint
from Joel Jacobson. Back-patch to all supported branches. Discussion:
[https://postgr.es/m/163099.1608312033@sss.pgh.pa.us](https://postgr.es/m/163099.1608312033@sss.pgh.pa.us)
[https://git.postgresql.org/pg/commitdiff/ff5d5611c01f60525c30b2c3ebc16d05edb7956d](https://git.postgresql.org/pg/commitdiff/ff5d5611c01f60525c30b2c3ebc16d05edb7956d)

- Increase timeout in 021_row_visibility.pl. Commit 7b28913bc figured 30 seconds
is long enough for anybody, but in contexts like valgrind runs, it isn't
necessarily.
[https://git.postgresql.org/pg/commitdiff/08dde1b3dc78e90e01f3af8e89ab27ed37cd8963](https://git.postgresql.org/pg/commitdiff/08dde1b3dc78e90e01f3af8e89ab27ed37cd8963)

- Improve autoprewarm's handling of early-shutdown scenarios. Bad things happen
if the DBA issues "pg_ctl stop -m fast" before autoprewarm finishes loading
its list of blocks to prewarm. The current worker process successfully
terminates early, but (if this wasn't the last database with blocks to
prewarm) the leader process will just try to launch another worker for the
next database. Since the postmaster is now in PM_WAIT_BACKENDS state, it
ignores the launch request, and the leader just sits until it's killed
manually. This is mostly the fault of our half-baked design for launching
background workers, but a proper fix for that is likely to be too invasive to
be back-patchable. To ameliorate the situation, fix apw_load_buffers() to
check whether SIGTERM has arrived just before trying to launch another worker.
That leaves us with only a very narrow window in each worker launch where
SIGTERM could occur between the launch request and successful worker start.
Another issue is that if the leader process does manage to exit, it
unconditionally rewrites autoprewarm.blocks with only the blocks currently in
shared buffers, thus forgetting any blocks that we hadn't reached yet while
prewarming. This seems quite unhelpful, since the next database start will
then not have the expected prewarming benefit. Fix it to not modify the file
if we shut down before the initial load attempt is complete. Per bug #16785
from John Thompson. Back-patch to v11 where the autoprewarm code was
introduced. Discussion:
[https://postgr.es/m/16785-c0207d8c67fb5f25@postgresql.org](https://postgr.es/m/16785-c0207d8c67fb5f25@postgresql.org)
[https://git.postgresql.org/pg/commitdiff/ff769831e081a4e69147019128a849ced43ec802](https://git.postgresql.org/pg/commitdiff/ff769831e081a4e69147019128a849ced43ec802)

- Improve client error messages for immediate-stop situations. Up to now, if the
DBA issued "pg_ctl stop -m immediate", the message sent to clients was the
same as for a crash-and-restart situation. This is confusing, not least
because the message claims that the database will soon be up again, something
we have no business predicting. Improve things so that we can generate
distinct messages for the two cases (and also recognize an ad-hoc SIGQUIT,
should somebody try that). To do that, add a field to pmsignal.c's shared
memory data structure that the postmaster sets just before broadcasting
SIGQUIT to its children. No interlocking seems to be necessary; the
intervening signal-sending and signal-receipt should sufficiently serialize
accesses to the field. Hence, this isn't any riskier than the existing usages
of pmsignal.c. We might in future extend this idea to improve other
postmaster-to-children signal scenarios, although none of them currently seem
to be as badly overloaded as SIGQUIT. Discussion:
[https://postgr.es/m/559291.1608587013@sss.pgh.pa.us](https://postgr.es/m/559291.1608587013@sss.pgh.pa.us)
[https://git.postgresql.org/pg/commitdiff/7e784d1dc191be24480a6b31a4ddc8e0e52be24d](https://git.postgresql.org/pg/commitdiff/7e784d1dc191be24480a6b31a4ddc8e0e52be24d)

- Fix race condition between shutdown and unstarted background workers. If a
database shutdown (smart or fast) is commanded between the time some process
decides to request a new background worker and the time that the postmaster
can launch that worker, then nothing happens because the postmaster won't
launch any bgworkers once it's exited PM_RUN state. This is fine ... unless
the requesting process is waiting for that worker to finish (or even for it to
start); in that case the requestor is stuck, and only manual intervention will
get us to the point of being able to shut down. To fix, cancel pending
requests for workers when the postmaster sends shutdown (SIGTERM) signals, and
similarly cancel any new requests that arrive after that point. (We can
optimize things slightly by only doing the cancellation for workers that have
waiters.) To fit within the existing bgworker APIs, the "cancel" is made to
look like the worker was started and immediately stopped, causing
deregistration of the bgworker entry. Waiting processes would have to deal
with premature worker exit anyway, so this should introduce no bugs that
weren't there before. We do have a side effect that registration records for
restartable bgworkers might disappear when theoretically they should have
remained in place; but since we're shutting down, that shouldn't matter.
Back-patch to v10. There might be value in putting this into 9.6 as well, but
the management of bgworkers is a bit different there (notably see 8ff518699)
and I'm not convinced it's worth the effort to validate the patch for that
branch. Discussion:
[https://postgr.es/m/661570.1608673226@sss.pgh.pa.us](https://postgr.es/m/661570.1608673226@sss.pgh.pa.us)
[https://git.postgresql.org/pg/commitdiff/7519bd16d1a2a2007b3604f6740611c0b75a6cd0](https://git.postgresql.org/pg/commitdiff/7519bd16d1a2a2007b3604f6740611c0b75a6cd0)

- Avoid time-of-day-dependent failure in log rotation test. Buildfarm members
pogona and petalura have shown a failure when pg_ctl/t/004_logrotate.pl starts
just before local midnight. The default rotate-at-midnight behavior occurs
just before the Perl script examines current_logfiles, so it figures that the
rotation it's already requested has occurred ... but in reality, that rotation
happens just after it looks, so the expected new log data goes into a
different file than the one it's examining. In HEAD,
src/test/kerberos/t/001_auth.pl has acquired similar code that evidently has a
related failure mode. Besides being quite new, few buildfarm critters run
that test, so it's unsurprising that we've not yet seen a failure there. Fix
both cases by setting log_rotation_age = 0 so that no time-based rotation can
occur. Also absorb 004_logrotate.pl's decision to set lc_messages = 'C' into
the kerberos test, in hopes that it will work in non-English prevailing
locales. Report:
[https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=pogona&dt=2020-12-24%2022%3A10%3A04](https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=pogona&dt=2020-12-24%2022%3A10%3A04)
Report:
[https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=petalura&dt=2020-02-01%2022%3A20%3A04](https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=petalura&dt=2020-02-01%2022%3A20%3A04)
[https://git.postgresql.org/pg/commitdiff/5c31afc49d0b62b357218b6f8b01782509ef8acd](https://git.postgresql.org/pg/commitdiff/5c31afc49d0b62b357218b6f8b01782509ef8acd)

- Really fix the dummy implementations in cipher.c. 945083b2f wasn't enough to
silence compiler warnings.
[https://git.postgresql.org/pg/commitdiff/0848cf4f553bda5a9f044c56b3bec19929ee24e6](https://git.postgresql.org/pg/commitdiff/0848cf4f553bda5a9f044c56b3bec19929ee24e6)

Alexander Korotkov pushed:

- Fix typalign in rangetypes statistics. 6df7a9698b introduces multirange types,
whose typanalyze function shares infrastructure with range types typanalyze
function. Since 6df7a9698b, information about type gathered by statistics is
filled from typcache. But typalign is mistakenly always set to double. This
commit fixes this oversight.
[https://git.postgresql.org/pg/commitdiff/4e1ee79e3182256d9c8ddbc1ce9c4e8419c611ff](https://git.postgresql.org/pg/commitdiff/4e1ee79e3182256d9c8ddbc1ce9c4e8419c611ff)

- Fix compiler warning in multirange_constructor0(). Discussion:
[https://postgr.es/m/X%2BBP8XE0UpIB6Yvh%40paquier.xyz](https://postgr.es/m/X%2BBP8XE0UpIB6Yvh%40paquier.xyz)
Author: Michael Paquier
[https://git.postgresql.org/pg/commitdiff/29f8f546767ebb4253f6dc37815e2d95fff9acd0](https://git.postgresql.org/pg/commitdiff/29f8f546767ebb4253f6dc37815e2d95fff9acd0)

Michaël Paquier pushed:

- Refactor logic to check for ASCII-only characters in string. The same logic
was present for collation commands, SASLprep and pgcrypto, so this removes
some code. Author: Michael Paquier Reviewed-by: Stephen Frost, Heikki
Linnakangas Discussion:
[https://postgr.es/m/X9womIn6rne6Gud2@paquier.xyz](https://postgr.es/m/X9womIn6rne6Gud2@paquier.xyz)
[https://git.postgresql.org/pg/commitdiff/93e8ff8701a65a70ea8826bdde7fdbbd9c285477](https://git.postgresql.org/pg/commitdiff/93e8ff8701a65a70ea8826bdde7fdbbd9c285477)

- Fix portability issues with parsing of recovery_target_xid. The parsing of
this parameter has been using strtoul(), which is not portable across
platforms. On most Unix platforms, unsigned long has a size of 64 bits, while
on Windows it is 32 bits. It is common in recovery scenarios to rely on the
output of txid_current() or even the newer pg_current_xact_id() to get a
transaction ID for setting up recovery_target_xid. The value returned by
those functions includes the epoch in the computed result, which would cause
strtoul() to fail where unsigned long has a size of 32 bits once the epoch is
incremented. WAL records and 2PC data include only information about 32-bit
XIDs and it is not possible to have XIDs across more than one epoch, so
discarding the high bits from the transaction ID set has no impact on
recovery. On the contrary, the use of strtoul() prevents a consistent
behavior across platforms depending on the size of unsigned long. This commit
changes the parsing of recovery_target_xid to use pg_strtouint64() instead,
available down to 9.6. There is one TAP test stressing recovery with
recovery_target_xid, where a tweak based on pg_reset{xlog,wal} is added to
bump the XID epoch so as this change gets tested, as per an idea from
Alexander Lakhin. Reported-by: Alexander Lakhin Discussion:
[https://postgr.es/m/16780-107fd0c0385b1035@postgresql.org](https://postgr.es/m/16780-107fd0c0385b1035@postgresql.org)
Backpatch-through: 9.6
[https://git.postgresql.org/pg/commitdiff/6db27037b99358018353b8748719cfa9de484988](https://git.postgresql.org/pg/commitdiff/6db27037b99358018353b8748719cfa9de484988)

- Fix typos and grammar in docs and comments. This fixes several areas of the
documentation and some comments in matters of style, grammar, or even format.
Author: Justin Pryzby Discussion:
[https://postgr.es/m/20201222041153.GK30237@telsasoft.com](https://postgr.es/m/20201222041153.GK30237@telsasoft.com)
[https://git.postgresql.org/pg/commitdiff/90fbf7c57df601c7e0b43ae7cf71f0f69908a7cc](https://git.postgresql.org/pg/commitdiff/90fbf7c57df601c7e0b43ae7cf71f0f69908a7cc)

Tomáš Vondra pushed:

- Consider unsorted paths in generate_useful_gather_paths.
generate_useful_gather_paths used to skip unsorted paths (without any
pathkeys), but that is unnecessary - the later code actually can handle such
paths just fine by adding a Sort node. This is clearly a thinko, preventing
construction of useful plans. Backpatch to 13, where Incremental Sort was
introduced. Author: James Coleman Reviewed-by: Tomas Vondra
Backpatch-through: 13 Discussion:
[https://postgr.es/m/CAAaqYe8cK3g5CfLC4w7bs=hC0mSksZC=H5M8LSchj5e5OxpTAg@mail.gmail.com](https://postgr.es/m/CAAaqYe8cK3g5CfLC4w7bs=hC0mSksZC=H5M8LSchj5e5OxpTAg@mail.gmail.com)
[https://git.postgresql.org/pg/commitdiff/f4a3c0b06250ddc8ae09b59b87cf68e9bc0d7ca1](https://git.postgresql.org/pg/commitdiff/f4a3c0b06250ddc8ae09b59b87cf68e9bc0d7ca1)

- Check parallel safety in generate_useful_gather_paths. Commit ebb7ae839d
ensured we ignore pathkeys with volatile expressions when considering adding a
sort below a Gather Merge. Turns out we need to care about parallel safety of
the pathkeys too, otherwise we might try sorting e.g. on results of a
correlated subquery (as demonstrated by a report from Luis Roberto). Initial
investigation by Tom Lane, patch by James Coleman. Backpatch to 13, where the
code was instroduced (as part of Incremental Sort). Reported-by: Luis Roberto
Author: James Coleman Reviewed-by: Tomas Vondra Backpatch-through: 13
Discussion:
[https://postgr.es/m/622580997.37108180.1604080457319.JavaMail.zimbra%40siscobra.com.br](https://postgr.es/m/622580997.37108180.1604080457319.JavaMail.zimbra%40siscobra.com.br)
Discussion:
[https://postgr.es/m/CAAaqYe8cK3g5CfLC4w7bs=hC0mSksZC=H5M8LSchj5e5OxpTAg@mail.gmail.com](https://postgr.es/m/CAAaqYe8cK3g5CfLC4w7bs=hC0mSksZC=H5M8LSchj5e5OxpTAg@mail.gmail.com)
[https://git.postgresql.org/pg/commitdiff/86b7cca72d4d0a4e043fac0a2cdd56218ff2f258](https://git.postgresql.org/pg/commitdiff/86b7cca72d4d0a4e043fac0a2cdd56218ff2f258)

- Disallow SRFs when considering sorts below Gather Merge. While we do allow
SRFs in ORDER BY, scan/join processing should not consider such cases - such
sorts should only happen via final Sort atop a ProjectSet. So make sure we
don't try adding such sorts below Gather Merge, just like we do for
expressions that are volatile and/or not parallel safe. Backpatch to
PostgreSQL 13, where this code was introduced as part of the Incremental Sort
patch. Author: James Coleman Reviewed-by: Tomas Vondra Backpatch-through: 13
Discussion:
[https://postgr.es/m/CAAaqYe8cK3g5CfLC4w7bs=hC0mSksZC=H5M8LSchj5e5OxpTAg@mail.gmail.com](https://postgr.es/m/CAAaqYe8cK3g5CfLC4w7bs=hC0mSksZC=H5M8LSchj5e5OxpTAg@mail.gmail.com)
Discussion:
[https://postgr.es/m/295524.1606246314%40sss.pgh.pa.us](https://postgr.es/m/295524.1606246314%40sss.pgh.pa.us)
[https://git.postgresql.org/pg/commitdiff/fac1b470a9f7e846534620b78ea4cf122ed432b2](https://git.postgresql.org/pg/commitdiff/fac1b470a9f7e846534620b78ea4cf122ed432b2)

- Don't search for volatile expr in find_em_expr_usable_for_sorting_rel. While
prepare_sort_from_pathkeys has to be concerned about matching up a volatile
expression to the proper tlist entry, we don't need to do that in
find_em_expr_usable_for_sorting_rel becausee such a sort will have to be
postponed anyway. Author: James Coleman Reviewed-by: Tomas Vondra
Backpatch-through: 13 Discussion:
[https://postgr.es/m/CAAaqYe8cK3g5CfLC4w7bs%3DhC0mSksZC%3DH5M8LSchj5e5OxpTAg%40mail.gmail.com](https://postgr.es/m/CAAaqYe8cK3g5CfLC4w7bs%3DhC0mSksZC%3DH5M8LSchj5e5OxpTAg%40mail.gmail.com)
[https://git.postgresql.org/pg/commitdiff/9aff4dc01fbb9e126efafd839ae8541362328f1a](https://git.postgresql.org/pg/commitdiff/9aff4dc01fbb9e126efafd839ae8541362328f1a)

- Improve find_em_expr_usable_for_sorting_rel comment. Clarify the relationship
between find_em_expr_usable_for_sorting_rel and prepare_sort_from_pathkeys,
i.e. what restrictions need to be shared between those two places. Author:
James Coleman Reviewed-by: Tomas Vondra Backpatch-through: 13 Discussion:
[https://postgr.es/m/CAAaqYe8cK3g5CfLC4w7bs%3DhC0mSksZC%3DH5M8LSchj5e5OxpTAg%40mail.gmail.com](https://postgr.es/m/CAAaqYe8cK3g5CfLC4w7bs%3DhC0mSksZC%3DH5M8LSchj5e5OxpTAg%40mail.gmail.com)
[https://git.postgresql.org/pg/commitdiff/1ca2eb103113d64930cf1120ba2beaaebd1076f4](https://git.postgresql.org/pg/commitdiff/1ca2eb103113d64930cf1120ba2beaaebd1076f4)

Bruce Momjian pushed:

- dummy commit.
[https://git.postgresql.org/pg/commitdiff/6ecf488d91ceb93a8be907a24c5d8a90358534ed](https://git.postgresql.org/pg/commitdiff/6ecf488d91ceb93a8be907a24c5d8a90358534ed)

- move hex_decode() to /common so it can be called from frontend. This allows
removal of a copy of hex_decode() from ecpg, and will be used by the
soon-to-be added pg_alterckey command. Backpatch-through: master
[https://git.postgresql.org/pg/commitdiff/c3826f831e6e63e13a749fd3ab9fd7106707b549](https://git.postgresql.org/pg/commitdiff/c3826f831e6e63e13a749fd3ab9fd7106707b549)

- revert removal of hex_decode() from ecpg from commit c3826f831e. ecpglib on
certain platforms can't handle the pg_log_fatal calls from libraries. This
was reported by the buildfarm. It needs a refactoring and return value change
if it is later removed. Backpatch-through: master
[https://git.postgresql.org/pg/commitdiff/558a6e8e21367dae9a294291337be10a8a4afd0a](https://git.postgresql.org/pg/commitdiff/558a6e8e21367dae9a294291337be10a8a4afd0a)

- Add key management system. This adds a key management system that stores
(currently) two data encryption keys of length 128, 192, or 256 bits. The
data keys are AES256 encrypted using a key encryption key, and validated via
GCM cipher mode. A command to obtain the key encryption key must be specified
at initdb time, and will be run at every database server start. New
parameters allow a file descriptor open to the terminal to be passed.
pg_upgrade support has also been added. Discussion:
[https://postgr.es/m/CA+fd4k7q5o6Nc_AaX6BcYM9yqTbC6_pnH-6nSD=54Zp6NBQTCQ@mail.gmail.com](https://postgr.es/m/CA+fd4k7q5o6Nc_AaX6BcYM9yqTbC6_pnH-6nSD=54Zp6NBQTCQ@mail.gmail.com)
Discussion:
[https://postgr.es/m/20201202213814.GG20285@momjian.us](https://postgr.es/m/20201202213814.GG20285@momjian.us)
Author: Masahiko Sawada, me, Stephen Frost
[https://git.postgresql.org/pg/commitdiff/978f869b992f9fca343e99d6fdb71073c76e869a](https://git.postgresql.org/pg/commitdiff/978f869b992f9fca343e99d6fdb71073c76e869a)

- Fix return value and const declaration from commit 978f869b99. This fixes the
non-OpenSSL compile case. Reported-by: buildfarm member sifaka
Backpatch-through: master
[https://git.postgresql.org/pg/commitdiff/945083b2f7e6c19c8921c655cac6778acb1e3e03](https://git.postgresql.org/pg/commitdiff/945083b2f7e6c19c8921c655cac6778acb1e3e03)

- remove uint128 requirement from patch 978f869b99 (CFE). Used char[16] instead.
Reported-by: buildfarm member florican Backpatch-through: master
[https://git.postgresql.org/pg/commitdiff/e35b2bad1a10a8eef9c1ffb563847b9c9df0cfce](https://git.postgresql.org/pg/commitdiff/e35b2bad1a10a8eef9c1ffb563847b9c9df0cfce)

- fixes docs and missing initdb help option for commit 978f869b99. Reported-by:
Erik Rijkers Discussion:
[https://postgr.es/m/a27e7bb60fc4c4a1fe960f7b055ba822@xs4all.nl](https://postgr.es/m/a27e7bb60fc4c4a1fe960f7b055ba822@xs4all.nl)
Backpatch-through: master
[https://git.postgresql.org/pg/commitdiff/26d60f2a6c1c93838a49ac4d685652b1bc92f547](https://git.postgresql.org/pg/commitdiff/26d60f2a6c1c93838a49ac4d685652b1bc92f547)

- fix no-return function call in cipher.c from commit 978f869b99. Reported-by:
buildfarm member sifaka Backpatch-through: master
[https://git.postgresql.org/pg/commitdiff/8e59813e2287db90044537b1093c0869020ffa4a](https://git.postgresql.org/pg/commitdiff/8e59813e2287db90044537b1093c0869020ffa4a)

- remove missing reference to crypto test from patch 978f869b99. Reported-by:
Tom Lane Discussion:
[https://postgr.es/m/1205031.1608925990@sss.pgh.pa.us](https://postgr.es/m/1205031.1608925990@sss.pgh.pa.us)
Backpatch-through: master
[https://git.postgresql.org/pg/commitdiff/f234899353f8998bdbd265125ce4a505a312d910](https://git.postgresql.org/pg/commitdiff/f234899353f8998bdbd265125ce4a505a312d910)

- Add pg_alterckey utility to change the cluster key. This can change the key
that encrypts the data encryption keys used for cluster file encryption.
Discussion:
[https://postgr.es/m/20201202213814.GG20285@momjian.us](https://postgr.es/m/20201202213814.GG20285@momjian.us)
Backpatch-through: master
[https://git.postgresql.org/pg/commitdiff/62afb42a7f9f533efc6c19f462c3a848fa4ddb63](https://git.postgresql.org/pg/commitdiff/62afb42a7f9f533efc6c19f462c3a848fa4ddb63)

- Allow ssl_passphrase_command to prompt the terminal. Previously the command
could not access the terminal for a passphrase. Backpatch-through: master
[https://git.postgresql.org/pg/commitdiff/300e430c76644b483f70bc833d6251a6a7fb84a6](https://git.postgresql.org/pg/commitdiff/300e430c76644b483f70bc833d6251a6a7fb84a6)

- Fix function call typo in frontend Win32 code, commit 978f869b99. Reported-by:
buildfarm member walleye Backpatch-through: master
[https://git.postgresql.org/pg/commitdiff/7705f8ca03713457bf7cde0b859a1ab45e4f268b](https://git.postgresql.org/pg/commitdiff/7705f8ca03713457bf7cde0b859a1ab45e4f268b)

- pg_alterckey: adjust doc build and Win32 sleep/open build fails. Fix for
commit 62afb42a7f. Reported-by: Tom Lane Discussion:
[https://postgr.es/m/1252111.1608953815@sss.pgh.pa.us](https://postgr.es/m/1252111.1608953815@sss.pgh.pa.us)
Backpatch-through: master
[https://git.postgresql.org/pg/commitdiff/82f8c45be551a2940e3cbaf08aa7a521bdac8331](https://git.postgresql.org/pg/commitdiff/82f8c45be551a2940e3cbaf08aa7a521bdac8331)

- doc: fix SGML markup for pg_alterckey from commit 62afb42a7f.
Backpatch-through: master
[https://git.postgresql.org/pg/commitdiff/3d4843babce087ae8dc734aeec36db084001a0e4](https://git.postgresql.org/pg/commitdiff/3d4843babce087ae8dc734aeec36db084001a0e4)

- Add scripts for retrieving the cluster file encryption key. Scripts are
passphrase, direct, AWS, and two Yubikey ones. Backpatch-through: master
[https://git.postgresql.org/pg/commitdiff/d7602afa2ef6d8b2018103dccd89e75b4985ac06](https://git.postgresql.org/pg/commitdiff/d7602afa2ef6d8b2018103dccd89e75b4985ac06)

- pg_alterckey: remove TAP check rules from Makefile. Reported-by: Pavel
Stehule, Michael Paquier Discussion:
[https://postgr.es/m/CAFj8pRBRNo4co5bqCx4BLx1ZZ45Z_T-opPxA+u7SLp7gAtBpNA@mail.gmail.com](https://postgr.es/m/CAFj8pRBRNo4co5bqCx4BLx1ZZ45Z_T-opPxA+u7SLp7gAtBpNA@mail.gmail.com)
Backpatch-through: master
[https://git.postgresql.org/pg/commitdiff/e174a6f1937248886e124cdb68408e727aeea278](https://git.postgresql.org/pg/commitdiff/e174a6f1937248886e124cdb68408e727aeea278)

- auth commands: list specific commands to install in Makefile. Previously I
used Makefile functions. Backpatch-through: master
[https://git.postgresql.org/pg/commitdiff/ba6725df364cd30e068ccd962fa426d9b7b44066](https://git.postgresql.org/pg/commitdiff/ba6725df364cd30e068ccd962fa426d9b7b44066)

- initdb: document that -K requires an argument. Reported-by: "Shinoda,
Noriyoshi" Discussion:
[https://postgr.es/m/TU4PR8401MB1152E92B4D44C81E496D6032EEDB0@TU4PR8401MB1152.NAMPRD84.PROD.OUTLOOK.COM](https://postgr.es/m/TU4PR8401MB1152E92B4D44C81E496D6032EEDB0@TU4PR8401MB1152.NAMPRD84.PROD.OUTLOOK.COM)
Author: "Shinoda, Noriyoshi" Backpatch-through: msater
[https://git.postgresql.org/pg/commitdiff/ccbe34139b7d9059f4af3405b2411f653cc2ce7c](https://git.postgresql.org/pg/commitdiff/ccbe34139b7d9059f4af3405b2411f653cc2ce7c)

Noah Misch pushed:

- Invalidate acl.c caches when pg_authid changes. This makes existing sessions
reflect "ALTER ROLE ... [NO]INHERIT" as quickly as they have been reflecting
"GRANT role_name". Back-patch to 9.5 (all supported versions). Reviewed by
Nathan Bossart. Discussion:
[https://postgr.es/m/20201221095028.GB3777719@rfd.leadboat.com](https://postgr.es/m/20201221095028.GB3777719@rfd.leadboat.com)
[https://git.postgresql.org/pg/commitdiff/08db7c63f34e6d9a402af81596e303f5b38d19b0](https://git.postgresql.org/pg/commitdiff/08db7c63f34e6d9a402af81596e303f5b38d19b0)

Jeff Davis pushed:

- Fix bug #16784 in Disk-based Hash Aggregation. Before processing tuples,
agg_refill_hash_table() was setting all pergroup pointers to NULL to signal to
advance_aggregates() that it should not attempt to advance groups that had
spilled. The problem was that it also set the pergroups for sorted grouping
sets to NULL, which caused rescanning to fail. Instead, change
agg_refill_hash_table() to only set the pergroups for hashed grouping sets to
NULL; and when compiling the expression, pass doSort=false. Reported-by:
Alexander Lakhin Discussion:
[https://postgr.es/m/16784-7ff169bf2c3d1588%40postgresql.org](https://postgr.es/m/16784-7ff169bf2c3d1588%40postgresql.org)
Backpatch-through: 13
[https://git.postgresql.org/pg/commitdiff/05c0258966b502fae1bd63dcbe74d52f5c6f6948](https://git.postgresql.org/pg/commitdiff/05c0258966b502fae1bd63dcbe74d52f5c6f6948)

- Stabilize test introduced in 05c02589, per buildfarm. In passing, make the
capitalization match the rest of the file. Reported-by: Tom Lane
[https://git.postgresql.org/pg/commitdiff/fa0fdf0510df1a21f42ac9f232f77a79b8577152](https://git.postgresql.org/pg/commitdiff/fa0fdf0510df1a21f42ac9f232f77a79b8577152)

# Pending Patches

Kyotaro HORIGUCHI sent in another revision of a patch to make the stats
collector use shared memory instead of files for intermediate storage.

Kyotaro HORIGUCHI sent in another revision of a patch to fix NaN handling for
geometric data types.

Masahiko Sawada sent in a patch to ensure that a schema created when an
extension is created is also dropped when the extension is dropped.

Justin Pryzby sent in two revisions of a patch to add zstd compression to
pg_dump.

Peter Smith sent in five more revisions of a patch to allow the table-sync
worker to use multiple transactions.

Bharath Rupireddy and Michaël Paquier traded patches to fail fast in CTAS/CMV if
the relation already exists.

Konstantin Knizhnik and Pavel Stěhule traded patches to add a login event that
can be used in an event trigger.

Bharath Rupireddy sent in four more revisions of a patch to use parallel inserts
in CTAS.

Zeng Wenjing sent in another revision of a patch to implement global temporary
tables.

Amit Langote sent in another revision of a patch to create foreign key triggers
in partitioned tables, too, and use same to enforce foreign keys correctly
during cross-partition updates.

Amit Langote sent in another revision of a patch to initialize the result
relation information lazily.

Thomas Munro sent in another revision of a patch to provide synchronous
scatter/gather I/O routines, pg_preadv() and pg_pwritev(), which correspond to
preadv() and pwritev() on systems that have those, and use vectored I/O to zero
WAL segments.

Peter Geoghegan sent in a patch to instrument
heap_compute_xid_horizon_for_tuples().

David Rowley sent in another revision of a patch to reduce contrib build special
cases on Windows.

Yugo Nagata sent in another revision of a patch to implement incremental
maintenance of materialized views.

Michaël Paquier and Justin Pryzby traded patches to allow CLUSTER, VACUUM FULL
and REINDEX to change tablespace on the fly.

Masahiko Sawada sent in a patch to add a new IndexAM API controlling index
vacuum strategies.

Fujii Masao sent in two more revisions of a patch to fix a
recovery_conflict_lock deadlock.

Amit Kapila and Kirk Jamison traded patches to make dropping relation buffers
more efficient using dlist.

Pavel Stěhule sent in two more revisions of a patch to implement schema
variables.

Dmitry Dolgov sent in two more revisions of a patch to use the new subscripting
infrastructure for JSONB.

Michaël Paquier sent in a patch to clean up some `-I$(libpq_srcdir)` in makefiles.

Craig Ringer sent in a patch to add a `$node->gdb_backends()` method to
PostgresNode instances.

Andrey V. Lepikhov sent in another revision of a patch to speed up COPY FROM in
the case tables with foreign partitions by implementing some new methods in the
FDW API: BeginForeignCopy, EndForeignCopy, and ExecForeignCopy.

Justin Pryzby sent in another revision of a patch to make `pg_ls_*()` show
directories and shared filesets.

Simon Riggs sent in a patch to add a boolean transaction_cleanup GUC, defaulting
to off, which is intended to replace uses of DISCARD ALL in things like
connection poolers.

Ajin Cherian sent in another revision of a patch to implement logical decoding
of two-phase transactions.

Fujii Masao and Bharath Rupireddy traded patches to intended to fix a bug that
manifested as connection leaks from the postgres_fdw when the associated user
mapping is dropped by closing invalid connections either in pgfdw_inval_callback()
when they are not in a transaction, or in pgfdw_xact_callback(), which gets
called at the end of every act once registered, in the current session.

Li Japin sent in a patch to document the streaming replication protocol better.

Thomas Munro sent in another revision of a patch to implement prefetch for WALs.

Bharath Rupireddy sent in another revision of a patch to add new table AMs for
multi- and single inserts.

Kyotaro HORIGUCHI sent in another revision of a patch to make it possible to
change table persistence without a heap rewrite, and add a new command: ALTER
TABLE ALL IN TABLESPACE SET LOGGED/UNLOGGED.

Kyotaro HORIGUCHI sent in a patch to pg_waldump that limits the number of lines
shown at the start.

Masahiro Ikeda sent in another revision of a patch to add WAL write/fsync
statistics to the pg_stat_wal view.

Nikita Glukhov sent in another revision of a patch to add SQL/JSON functions.

Nikita Glukhov sent in another revision of a patch to implement JSON_TABLE.

Dilip Kumar and Andrey Borodin traded patches to implement custom table
compression methods.

Dmitry Dolgov sent in another revision of a patch to prevent jumbling of every
element in ArrayExpr.

Andrey Borodin sent in another revision of a patch to reorganize the pglz
compression code to make it more efficient. This gained a speedup of about 1.4x.

Julien Rouhaud sent in another revision of a patch to add a boolean column,
toplevel, to pg_stat_statements.

Fabien COELHO sent in a patch to add table access method as an option to
pgbench.

Justin Pryzby sent in another revision of a patch to add a pg_upgrade test for
binary compatibility of core data types.

Alexander Korotkov sent in a patch to fix bugs in comparison functions for
multirange_bsearch_match(), implement operators for checking if the range
contains a multirange, improve the signatures of internal multirange functions
by adding const qualifies where applicable and replacing the multirange
typecache argument with range typecache argument, adding GiST indexes for
multiranges, and adding support for multirange matching to the existing range
GiST indexes.

Justin Pryzby sent in another revision of a patch to fix typos and do some
wordsmithing for the latest documentation.

Browse pgsql-announce by date

  From Date Subject
Next Message Postgres.ai via PostgreSQL Announce 2021-01-02 16:20:21 Database Lab Engine 2.1.0 released
Previous Message Pgpool Global Development Group via PostgreSQL Announce 2020-12-26 12:58:39 Pgpool-II 4.2.1 is now released.