Re: [PATCH] Clean up property graph error messages

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: [PATCH] Clean up property graph error messages
Дата
Msg-id 459ea164-aa38-43dd-8c93-dbb1063d20b5@eisentraut.org
обсуждение
Ответ на [PATCH] Clean up property graph error messages  (Ayush Tiwari <ayushtiwari.slg01@gmail.com>)
Ответы Re: [PATCH] Clean up property graph error messages
Список pgsql-hackers
On 04.05.26 21:57, Ayush Tiwari wrote:
> While looking at the SQL/PGQ property graph error paths, I noticed a
> few small cleanups in propgraphcmds.c.
> 
> The attached patch fixes a user-visible error message from "mismatching
> properties names" to "mismatching property names",

I have fixed that.

> and moves a
> ReleaseSysCache() call before an ERROR ereport in
> check_element_properties().
> 
> The existing code should be cleaned up by
> the resource owner on the ERROR path, but the explicit ReleaseSysCache()
> placed after ereport(ERROR) was unreachable.

I think that's fine.  I don't think the change makes this better.




В списке pgsql-hackers по дате отправления: