Re: switch UNLOGGED to LOGGED
Leonardo Francalanci <m_lists@yahoo.it>
From: Leonardo Francalanci <m_lists@yahoo.it>
To: Leonardo Francalanci <m_lists@yahoo.it>, Robert Haas <robertmhaas@gmail.com>, Noah Misch <noah@leadboat.com>
Cc: pgsql-hackers@postgresql.org
Date: 2011-05-20T08:59:36Z
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...