Re: [PATCH] Clean up property graph error messages - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [PATCH] Clean up property graph error messages
Date
Msg-id 459ea164-aa38-43dd-8c93-dbb1063d20b5@eisentraut.org
Whole thread
In response to [PATCH] Clean up property graph error messages  (Ayush Tiwari <ayushtiwari.slg01@gmail.com>)
Responses Re: [PATCH] Clean up property graph error messages
List 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 by date:

Previous
From: Jim Jones
Date:
Subject: Re: Fix bug with accessing to temporary tables of other sessions
Next
From: Peter Eisentraut
Date:
Subject: Re: [PATCH] Clean up property graph error messages