Re: Fwd: Add tablespace tap test to pg_rewind - Mailing list pgsql-hackers

From Shaoqi Bai
Subject Re: Fwd: Add tablespace tap test to pg_rewind
Date
Msg-id CAGRcZQXJo-=Cq4C_21sPcV=_3DD1OVSMQU4CDj8sbKqCFPtTDA@mail.gmail.com
Whole thread Raw
In response to Re: Fwd: Add tablespace tap test to pg_rewind  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Fwd: Add tablespace tap test to pg_rewind
List pgsql-hackers


On Tue, Mar 12, 2019 at 10:27 AM Michael Paquier <michael@paquier.xyz> wrote:
It could be an idea to split the patch in two pieces:
- One patch which refactors the code for the new option in
PostgresNode.pm
- Second patch for the new test with integration in RewindTest.pm.
This should touch different parts of the code, so combining both would
be fine as well for me :)
--
Michael

Have updated the patch doing as you suggested


On Wed, Mar 20, 2019 at 7:45 AM Michael Paquier <michael@paquier.xyz> wrote:
I would have avoided
extra routines in the patch, like what you have done with
create_standby_tbl_mapping(), but instead do something like
init_from_backup() which is able to take extra parameters in a way
similar to has_streaming and has_restoring.  However, the trick with
tablespace mapping is that the caller of backup() should be able to
pass down multiple tablespace mapping references to make that a
maximum portable.
--
Michael

Also updated the patch to achieve your suggestion. 

Attachment

pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: [HACKERS] PATCH: multivariate histograms and MCV lists
Next
From: Tom Lane
Date:
Subject: Re: BUG #15572: Misleading message reported by "Drop function operation" on DB with functions having same name