Re: Property graph: fix error handling when dropping non-existent label property
В списке pgsql-hackers по дате отправления:
| От | Álvaro Herrera |
|---|---|
| Тема | Re: Property graph: fix error handling when dropping non-existent label property |
| Дата | |
| Msg-id | 02fe13db-4fba-4e9d-9b4c-e6271a133502@app.fastmail.com обсуждение |
| Ответ на | Re: Property graph: fix error handling when dropping non-existent label property (Chao Li <li.evan.chao@gmail.com>) |
| Ответы |
Re: Property graph: fix error handling when dropping non-existent label property
|
| Список | pgsql-hackers |
On 2026-04-29, Chao Li wrote: >> Looks good to me. However, I did change OidIsValid() and !OidIsValid() >> back to (oid) and (!oid) conditions to be consistent with the rest of >> the code. > > In the file, I also see: > ``` > if (pgrelid == InvalidOid) > ``` > > Should we take this opportunity to change to use OidIsValid() > everywhere in the file? As this feature is new to PG19, we can cleanup > the inconsistency before releasing v19. Otherwise some people might > also file a cleanup patch for this in the future. Yeah, I find "if (oid)" a rather terrible coding pattern. The negative one is perhaps not so bad, but I'd keep both casessimilar by using the macro in both, for consistency. -- Álvaro Herrera
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера