From: | Mithun Cy <mithun(dot)cy(at)gmail(dot)com> |
---|---|
To: | Michael Paquier <michael(at)paquier(dot)xyz> |
Cc: | pgsql-bugs(at)lists(dot)postgresql(dot)org, pgsql-hackers(at)lists(dot)postgresql(dot)org, michael(dot)paquier(at)gmail(dot)com, fujii(at)postgresql(dot)org, Kuntal Ghosh <kuntalghosh(dot)2007(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com> |
Subject: | Re: pg_rewind : feature to rewind promoted standby is broken! |
Date: | 2019-03-13 18:45:57 |
Message-ID: | CADq3xVYGtO+qV=JeiEGG5cEUCDqgGwou3t6iba5Pc4XxjeJeTg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-hackers |
On Wed, Mar 13, 2019 at 1:38 PM Michael Paquier <michael(at)paquier(dot)xyz> wrote:
> On Tue, Mar 12, 2019 at 06:23:01PM +0900, Michael Paquier wrote:
> > And you are pointing out to the correct commit. The issue is that
> > process_target_file() has added a call to check_file_excluded(), and
> > this skips all the folders which it thinks can be skipped. One
> > problem though is that we also filter out pg_internal.init, which is
> > present in each database folder, and remains in the target directory
> > marked for deletion. Then, when the deletion happens, the failure
> > happens as the directory is not fully empty.
>
> Okay, here is a refined patch with better comments, the addition of a
> test case (creating tables in the new databases in 002_databases.pl is
> enough to trigger the problem).
>
I have not looked into the patch but quick test show it has fixed the above
issue.
[mithuncy(at)localhost pgrewindbin]$ ./bin/pg_rewind -D standby
--source-server="host=127.0.0.1 port=5432 user=mithuncy dbname=postgres" -n
servers diverged at WAL location 0/3000000 on timeline 1
rewinding from last common checkpoint at 0/2000060 on timeline 1
Done!
[mithuncy(at)localhost pgrewindbin]$ ./bin/pg_rewind -D standby
--source-server="host=127.0.0.1 port=5432 user=mithuncy dbname=postgres"
servers diverged at WAL location 0/3000000 on timeline 1
rewinding from last common checkpoint at 0/2000060 on timeline 1
Done!
--
Thanks and Regards
Mithun Chicklore Yogendra
EnterpriseDB: http://www.enterprisedb.com
From | Date | Subject | |
---|---|---|---|
Next Message | PG Bug reporting form | 2019-03-13 19:11:32 | BUG #15693: Suggestion on libpq memory management |
Previous Message | Alvaro Herrera | 2019-03-13 13:54:55 | Re: BUG #15691: ERROR: XX000: cannot update SecondarySnapshot during a parallel operation |
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2019-03-13 18:49:06 | Re: hyrax vs. RelationBuildPartitionDesc |
Previous Message | Paul Ramsey | 2019-03-13 18:42:33 | Re: Compressed TOAST Slicing |