| От | Peter Eisentraut |
|---|---|
| Тема | Re: handling of heap rewrites in logical decoding |
| Дата | |
| Msg-id | 93beb659-1fc2-5f3d-b4fe-52e9ccb2be31@2ndquadrant.com обсуждение |
| Ответ на | Re: handling of heap rewrites in logical decoding (Craig Ringer <craig@2ndquadrant.com>) |
| Ответы |
Re: handling of heap rewrites in logical decoding
|
| Список | pgsql-hackers |
On 2/25/18 07:27, Craig Ringer wrote: > I'm pretty sure we _will_ want the ability to decode and stream rewrite > contents for non-IMMUTABLE table rewrites. > > Filtering out by default is OK by me, but I think making it impossible > to decode is a mistake. So I'm all for the oid option and had written a > suggestion for it before I saw you already mentioned it in the next > part of your mail. > > The main issue with filtering out rewrites by default is that I don't > see how, if we default to ignore/filter-out, plugins would indicate > "actually I want to choose about this one" or "I understand table > rewrites". I'd prefer not to add another change callback. Second version, which uses an OID. I added another field to the output plugin options (next to the output_type), to indicate whether the plugin wants to receive these changes. I added some test cases to test_decoding to show how it works either way. It's a bit messy to pass this setting through to the ReorderBuffer; maybe there is a better idea. But the result seems pretty useful. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера