[GENERAL] Logical decoding output plug-in questions

2015-01-26 Thread Christophe Pettus
I'm having a great time playing with logical decoding, and had a couple of parameter questions: * OutputPluginPrepareWrite, OutputPluginWrite -- last_write. This is false if you are planning to do another OutputPluginPrepareWrite/OutputPluginWrite pair in the same invocation of the same

Re: [GENERAL] Logical decoding output plug-in questions

2015-01-26 Thread Andres Freund
On 2015-01-26 13:00:29 -0800, Christophe Pettus wrote: * OutputPluginPrepareWrite, OutputPluginWrite -- last_write. This is false if you are planning to do another OutputPluginPrepareWrite/OutputPluginWrite pair in the same invocation of the same callback function, yes? Yes. Important so

Re: [GENERAL] Logical decoding output plug-in questions

2015-01-26 Thread Christophe Pettus
Thank you! On Jan 26, 2015, at 2:24 PM, Andres Freund and...@2ndquadrant.com wrote: What's in the old tuple depends on the configured replica identity. My apologies, but... configured replica identity? The literalis_init/literal parameter will be true when the replication slot is

Re: [GENERAL] Logical decoding output plug-in questions

2015-01-26 Thread Andres Freund
On 2015-01-26 15:35:39 -0800, Christophe Pettus wrote: On Jan 26, 2015, at 2:24 PM, Andres Freund and...@2ndquadrant.com wrote: What's in the old tuple depends on the configured replica identity. My apologies, but... configured replica identity? Search for postgres and replica identity.