1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-24 00:23:06 +03:00

Change _mdfd_segpath() to return paths by value

This basically mirrors the changes done in the predecessor commit. While there
isn't currently a need to get these paths in critical sections, it seems a
shame to unnecessarily allocate memory in these paths now that relpath()
doesn't allocate anymore.

Discussion: https://postgr.es/m/xeri5mla4b5syjd5a25nok5iez2kr3bm26j2qn4u7okzof2bmf@kwdh2vf7npra
This commit is contained in:
Andres Freund
2025-02-25 09:02:07 -05:00
parent 37c87e63f9
commit ecbff4378b
2 changed files with 38 additions and 21 deletions

View File

@@ -1623,6 +1623,7 @@ Material
MaterialPath
MaterialState
MdfdVec
MdPathStr
Memoize
MemoizeEntry
MemoizeInstrumentation