Re: WAL replay failure after file truncation(?)

Поиск
Список
Период
Сортировка
От Hans-Jürgen Schönig
Тема Re: WAL replay failure after file truncation(?)
Дата
Msg-id 4296BE9F.5050800@cybertec.at
обсуждение исходный текст
Ответ на Re: WAL replay failure after file truncation(?)  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: WAL replay failure after file truncation(?)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> Manfred Koizar <mkoi-pg@aon.at> writes:
> 
>>>>[...]  Is it sufficient to
>>>>remember just the relation and the block number or do we need the
>>>>contents a well?
> 
> 
>>I meant the contents of the WAL record, not the original block
>>contents.  Anyway, I think it's not needed.
> 
> 
> Oh, I see.  Yes, it might be worth hanging onto for debugging purposes.
> If we did get a report of such a failure, I'm sure we'd wish to know
> what sort of WAL record triggered it.  One trusts there won't be so many
> that storing 'em all is a problem ...
> 
>             regards, tom lane
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
>       subscribe-nomail command to majordomo@postgresql.org so that your
>       message can get through to the mailing list cleanly


I guess I am having the same problem here: I am just dealing with a 
truncated table after a hard kill.
The symptoms are: The storage file of the table is missing while the 
system tables can still see the table.
Looking at TRUNCATE (this is the only command which could potentially 
have caused this problem in my case) it seems as if the system tables 
are actually changed propery before the file on disk is truncated.

My question is: What happens if the system is killed inside 
rebuild_relation or inside swap_relfilenodes which is called by 
rebuild_relation?
many thanks and best regards,
    Hans


-- 
Cybertec Geschwinde u Schoenig
Schoengrabern 134, A-2020 Hollabrunn, Austria
Tel: +43/664/393 39 74
www.cybertec.at, www.postgresql.at



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: foreign keys and RI triggers
Следующее
От: Ron Mayer
Дата:
Сообщение: Re: soundex and metaphone