Re: switch UNLOGGED to LOGGED

From: Leonardo Francalanci <m_lists(at)yahoo(dot)it>
To: Leonardo Francalanci <m_lists(at)yahoo(dot)it>, Robert Haas <robertmhaas(at)gmail(dot)com>, Noah Misch <noah(at)leadboat(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: switch UNLOGGED to LOGGED
Date: 2011-05-20 08:59:36
Message-ID: 263036.71387.qm@web29018.mail.ird.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> - the patch is missing the "send all table pages to the
> standby" part; is there some code I can use as base?
> I guess I have to generate some special log type that
> is only "played" by standby servers.

Maybe I could use log_newpage, but instead of
XLOG_HEAP_NEWPAGE I could use something like
XLOG_HEAP_COPYPAGE; and in heap_redo, in the
XLOG_HEAP_COPYPAGE case, call heap_xlog_newpage
only in case we're in standby...

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Emanuel Calvo 2011-05-20 09:02:57 Error compiling sepgsql in PG9.1
Previous Message Leonardo Francalanci 2011-05-20 08:37:20 Re: switch UNLOGGED to LOGGED