Re: emergency outage requiring database restart
От | Alvaro Herrera |
---|---|
Тема | Re: emergency outage requiring database restart |
Дата | |
Msg-id | 20161021190250.uytx63itjo4e6per@alvherre.pgsql обсуждение исходный текст |
Ответ на | Re: emergency outage requiring database restart (Merlin Moncure <mmoncure@gmail.com>) |
Ответы |
Re: emergency outage requiring database restart
|
Список | pgsql-hackers |
Merlin Moncure wrote: > OK, I have some good (very- in the specific case of yours truly) news > to report. Doing a filesystem level copy to a test server I was able > to relfilenode swap one of the critical tables over the place of the > refilenode of the stored backup. Not being able know the file to copy > from, I figured out the source node by judging the size and using > 'strings' utility. Data recovery for that table at least appears to > be 100%. FWIW you can use pg_filedump and match based on the number of columns. I suppose you could also use the pageinspect extension, by 'dd'ing a page from the file into the database and feeding into heap_page_items as bytea. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления: