From: | jian xu <jamesxu(at)outlook(dot)com> |
---|---|
To: | "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org> |
Subject: | Re: question about database recover proceduers |
Date: | 2021-01-04 19:10:15 |
Message-ID: | BL0PR02MB4561A95733A6DF300A7C39F9A1D20@BL0PR02MB4561.namprd02.prod.outlook.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
oh, I think I figured it out. I enabled the debug mode,
log_min_messages = debug5
log_min_error_statement = debug5
and saw the recovery steps detail in the log file, it also shows the status of restore command.
it turns out my restore command had problem, after I fixed it, the db recovery works.
thanks
James
________________________________
From: jian xu <jamesxu(at)outlook(dot)com>
Sent: Monday, January 4, 2021 12:54
To: pgsql-admin(at)lists(dot)postgresql(dot)org <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: question about database recover proceduers
Hello,
my pg version is 11, I use pg_basebackup+wal archive files to backup the database. I tried to restore the db to the latest wal archive file.
I restored the pg_basebackup file first, restored wal archive files to the archive folder, and created the recovery.conf file, which only has the "restore_command" in it.
when I started up the pg service, it didn't recover any wal archive files from archive folder with restore_command.
may I know how pg determines which next wal archive file needs to be fetched from archive folder?
how to troubleshooting the recover procedure, and how to check if restore_command is called?
thanks,
James
From | Date | Subject | |
---|---|---|---|
Next Message | dbatoCloud Solution | 2021-01-05 06:01:11 | Looking for tool help |
Previous Message | jian xu | 2021-01-04 17:54:47 | question about database recover proceduers |