Logical decoding output plug-in questions - Mailing list pgsql-general

From Christophe Pettus
Subject Logical decoding output plug-in questions
Date
Msg-id 4D9C9766-DAD1-45C5-808A-C912828E0205@thebuild.com
Whole thread Raw
Responses Re: Logical decoding output plug-in questions  (Andres Freund <andres@2ndquadrant.com>)
List pgsql-general
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/OutputPluginWritepair in the same invocation of the same callback function, yes? 

* On an UPDATE, it appears that data.tp.oldtuple is only not-NULL if a primary key field changed, and then it only
includesprimary key fields (the rest being NULL).  Correct? 

* pg_decode_startup -- is_init.  What's the situation under which this is true or false?

Thanks!

--
-- Christophe Pettus
   xof@thebuild.com



pgsql-general by date:

Previous
From: amihay gonen
Date:
Subject: Re: Psql 9.4 with server 9.4 doesn't auto complete table names
Next
From: Adrian Klaver
Date:
Subject: Re: Psql 9.4 with server 9.4 doesn't auto complete table names