Re: Don't overwrite scan key in systable_beginscan()
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Noah Misch <noah@leadboat.com>
Cc: Peter Eisentraut <peter@eisentraut.org>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2024-08-09T04:55:46Z
Lists: pgsql-hackers
Noah Misch <noah@leadboat.com> writes: > On Thu, Aug 08, 2024 at 08:46:35AM +0200, Peter Eisentraut wrote: >> I propose to fix that by making a copy of the scan keys passed by the caller >> and make the modifications there. > No objection, but this would obsolete at least some of these comments (the > catcache.c ones if nothing else): That ties into something I forgot to ask: aren't there any copy steps or other overhead that we could remove, given this new API constraint? That would help address Robert's concern. regards, tom lane
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix temporary memory leak in system table index scans
- 1acf10549e64 18.0 landed
-
Don't overwrite scan key in systable_beginscan()
- 811af9786b91 18.0 landed
-
Replace gratuitous memmove() with memcpy()
- 8b5c6a54c439 18.0 landed