pgsql: Fix pg_rewind to handle relation data files in tablespaces prope

From: Fujii Masao <fujii(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix pg_rewind to handle relation data files in tablespaces prope
Date: 2018-03-05 17:12:40
Message-ID: E1estfE-0003ml-Rb@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2f3e2340cd1b67e91cefdf45e4c915297d1034e2

Modified Files
--------------
src/bin/pg_rewind/filemap.c | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2018-03-05 17:12:57 pgsql: Fix pg_rewind to handle relation data files in tablespaces prope
Previous Message Peter Eisentraut 2018-03-05 16:52:24 pgsql: Remove some obsolete procedure-specific code from PLs