Re: GetRelationPath() vs critical sections - Mailing list pgsql-hackers

From Thomas Munro
Subject Re: GetRelationPath() vs critical sections
Date
Msg-id CA+hUKGLAznzOPc34+qYAumJz+P66sc58XkM+68NO=xstoVwQ6A@mail.gmail.com
Whole thread Raw
In response to GetRelationPath() vs critical sections  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On Thu, Sep 5, 2024 at 3:58 AM Andres Freund <andres@anarazel.de> wrote:
> Obviously we could add a version of GetRelationPath() that just prints into a
> caller provided buffer - but that's somewhat awkward API wise.

For the record, that's exactly what I did in the patch I proposed to
fix our long standing RelationTruncate() data-eating bug:


https://www.postgresql.org/message-id/flat/CA%2BhUKG%2B5nfWcpnZ%3DZ%3DUpGvY1tTF%3D4QU_0U_07EFaKmH7Nr%2BNLQ%40mail.gmail.com#aa061db119ee7a4b5390af56e24f475d



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: psql: fix variable existence tab completion
Next
From: David Benjamin
Date:
Subject: Re: [PATCH] Avoid mixing custom and OpenSSL BIO functions