Re: PublicationActions - use bit flags.
От
Peter Eisentraut
Тема
Re: PublicationActions - use bit flags.
Дата
Msg-id
3b7f2bdd-77ed-00d7-437c-dd9c37e6a2fa@enterprisedb.com
Ответ на
PublicationActions - use bit flags. (Peter Smith)
Список
Дерево обсуждения
PublicationActions - use bit flags. Peter Smith <smithpb2250@gmail.com>
Re: PublicationActions - use bit flags. Justin Pryzby <pryzby@telsasoft.com>
Re: PublicationActions - use bit flags. Peter Smith <smithpb2250@gmail.com>
Re: PublicationActions - use bit flags. Tom Lane <tgl@sss.pgh.pa.us>
Re: PublicationActions - use bit flags. Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: PublicationActions - use bit flags. Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: PublicationActions - use bit flags. Tom Lane <tgl@sss.pgh.pa.us>
Re: PublicationActions - use bit flags. Greg Nancarrow <gregn4422@gmail.com>
On 20.12.21 01:18, Peter Smith wrote: > For some reason the current HEAD PublicationActions is a struct of > boolean representing combinations of the 4 different "publication > actions". > > I felt it is more natural to implement boolean flag combinations using > a bitmask instead of a struct of bools. IMO using the bitmask also > simplifies assignment and checking of said flags. I don't see why this is better. It just makes the code longer and adds more punctuation and reduces type safety.
В списке pgsql-hackers по дате отправления
От: Peter Eisentraut
Дата: