]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix pg_rewind to handle relation data files in tablespaces properly.
authorFujii Masao <fujii@postgresql.org>
Mon, 5 Mar 2018 17:08:18 +0000 (02:08 +0900)
committerFujii Masao <fujii@postgresql.org>
Mon, 5 Mar 2018 17:09:12 +0000 (02:09 +0900)
commitbca696ab0bff306a01870306c0dfc9971b079c4e
treeb8677a01daf59ee6a7d163117fd35e9120aa3b16
parentbfade0e51ba93cfbb4e3661bc39bb0ca0b43160a
Fix pg_rewind to handle relation data files in tablespaces properly.

pg_rewind checks whether each file is a relation data file, from its path.
Previously this check logic had the bug which made pg_rewind fail to
recognize any relation data files in tablespaces. Which also caused
an assertion failure in pg_rewind.

Back-patch to 9.5 where pg_rewind was added.

Author: Takayuki Tsunakawa
Reviewed-by: Michael Paquier
Discussion: https://postgr.es/m/0A3221C70F24FB45833433255569204D1F8D6C7A@G01JPEXMBYT05
src/bin/pg_rewind/filemap.c