]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix calculation related to temporary WAL segment name in basic_archive
authorMichael Paquier <michael@paquier.xyz>
Mon, 17 Oct 2022 02:40:19 +0000 (11:40 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 17 Oct 2022 02:40:19 +0000 (11:40 +0900)
commit9ebcb5ffdf3a1f49388c38ba5273370f49bf7d19
tree1fa72a01c679f53aa2aebb84e687a377b10273cf
parentd4abb0bc5abb5dcb351956aed70f317a6bc494ba
Fix calculation related to temporary WAL segment name in basic_archive

The file name used for its temporary destination, before renaming it to
the real deal, has been using a microseconds in a timestamp aimed to be
originally in milli-seconds.  This is harmless as this is aimed at being
a safeguard against name collisions (note MyProcPid in the name), but
let's be correct with the maths.

While on it, add a note in the module's makefile to document why
installcheck is not supported.

Author: Nathan Bossart
Reviewed-by: Bharath Rupireddy
Discussion: https://postgr.es/m/20221014044106.GA1673343@nathanxps13
Backpatch-through: 15
contrib/basic_archive/Makefile
contrib/basic_archive/basic_archive.c