]> granicus.if.org Git - postgresql/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:08:18 +0000 (02:08 +0900)
commit2f3e2340cd1b67e91cefdf45e4c915297d1034e2
tree18e80c5cb94f3a0c7004b0cf66d34150159abc5a
parent09230e54fb39e8cd8add3f119d03afd72adc72b9
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