Re: Confusing with commit time usage in logical decoding
В списке pgsql-hackers по дате отправления:
| От | Alvaro Herrera |
|---|---|
| Тема | Re: Confusing with commit time usage in logical decoding |
| Дата | |
| Msg-id | 20160301172835.GA358846@alvherre.pgsql обсуждение исходный текст |
| Ответ на | Re: Confusing with commit time usage in logical decoding (Andres Freund <andres@anarazel.de>) |
| Список | pgsql-hackers |
Andres Freund wrote: > I'd rather just initialize commit_time to parsed->xact_time. That also works. Probably also change its declaration to actually be TimestampTz ... > This indeed is clearly a bug. I do wonder if anybody has a good idea > about how to add regression tests for this? It's rather annoying that > we have to suppress timestamps in the test_decoding tests, because > they're obviously not reproducible... Maybe commit two transactions with a 1s sleep in between, and verify that the difference between the two timestamps is >= 1s and <= now()? (I don't know the test_decoding test suite) -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера