Re: Track in pg_replication_slots the reason why slots conflict?
Вложения
В списке pgsql-hackers по дате отправления:
| От | Michael Paquier |
|---|---|
| Тема | Re: Track in pg_replication_slots the reason why slots conflict? |
| Дата | |
| Msg-id | ZYTKdHAFDD5XG-R1@paquier.xyz обсуждение исходный текст |
| Ответ на | Re: Track in pg_replication_slots the reason why slots conflict? (Andres Freund <andres@anarazel.de>) |
| Ответы |
Re: Track in pg_replication_slots the reason why slots conflict?
|
| Список | pgsql-hackers |
On Thu, Dec 21, 2023 at 07:26:56AM -0800, Andres Freund wrote: > On 2023-12-21 19:55:51 +0530, Amit Kapila wrote: >> We can return int2 value from the function pg_get_replication_slots() >> and then use that to display a string in the view >> pg_replication_slots. > > I strongly dislike that pattern. It just leads to complicated views - and > doesn't provide a single benefit that I am aware of. It's much bettter to > simply populate the text version in pg_get_replication_slots(). I agree that this is a better integration in the view, and that's what I would do FWIW. Amit, how much of a problem would it be to do a text->enum mapping when synchronizing the slots from a primary to a standby? Sure you could have a system function that does some of the mapping work, but I am not sure what's the best integration when it comes to the other patch. -- Michael
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера