Re: Refactoring of compression options in pg_basebackup
Вложения
В списке pgsql-hackers по дате отправления:
| От | Michael Paquier |
|---|---|
| Тема | Re: Refactoring of compression options in pg_basebackup |
| Дата | |
| Msg-id | YfCgr5797x1Du3Zf@paquier.xyz обсуждение |
| Ответ на | Re: Refactoring of compression options in pg_basebackup (Robert Haas <robertmhaas@gmail.com>) |
| Ответы |
Re: Refactoring of compression options in pg_basebackup
|
| Список | pgsql-hackers |
On Tue, Jan 25, 2022 at 03:14:13PM -0500, Robert Haas wrote: > On Sat, Jan 22, 2022 at 12:47 AM Michael Paquier <michael@paquier.xyz> wrote: >> Also, having this enum in walmethods.h is perhaps not the best place >> either, even more if you plan to use that in pg_basebackup for the >> server-side compression. One idea is to rename this enum to >> DataCompressionMethod, moving it into a new header, like common.h as >> of the attached. > > Well, we also have CompressionAlgorithm competing for the same job. Sure, but I don't think that it is a good idea to unify that yet, at least not until pg_dump is able to handle LZ4 as an option, as the main benefit that we'd gain here is to be able to change the code to a switch/case without defaults where we would detect code paths that require a refresh once adding support for a new option. -- Michael
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера