Fix pg_rewind to handle relation data files in tablespaces properly.
authorFujii Masao
Mon, 5 Mar 2018 17:08:18 +0000 (02:08 +0900)
committerFujii Masao
Mon, 5 Mar 2018 17:10:41 +0000 (02:10 +0900)
commit7aba4f23f5b7717f70f6ea0cb4361c481bb4863b
treef3c93310767ca280c4b834dd6f18461ff41da9bc
parente2108f58131f6618477ca7c1adaeaeec52c16ca1
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