Re: [PATCH] Add some useful asserts into View Options macroses
От | Robert Haas |
---|---|
Тема | Re: [PATCH] Add some useful asserts into View Options macroses |
Дата | |
Msg-id | CA+TgmobsfF_Rr89TS-2zDVTLjbp84WLJg4-reuqvN7yNHFMg6Q@mail.gmail.com обсуждение исходный текст |
Ответ на | [PATCH] Add some useful asserts into View Options macroses (Nikolay Shaplov <dhyan@nataraj.su>) |
Ответы |
Re: [PATCH] Add some useful asserts into View Options macroses
|
Список | pgsql-hackers |
On Sat, Oct 5, 2019 at 5:23 PM Nikolay Shaplov <dhyan@nataraj.su> wrote: > This thread is a follow up to the thread https://www.postgresql.org/message-id/2620882.s52SJui4ql@x200m where I've beentrying to remove StdRdOptions > structure and replace it with unique structure for each relation kind. > > I've decided to split that patch into smaller parts. > > This part adds some asserts to ViewOptions macroses. > Since an option pointer there is converted into (ViewOptions *) it would be > really good to make sure that this macros is called in proper context, and we > do the convertation properly. At least when running tests with asserts turned > on. Seems like a good idea. Should we try to do something similar for the macros in that header file that cast to StdRdOptions? -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
В списке pgsql-hackers по дате отправления: