pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix hash_array
Date: Wed, 15 Sep 2021 10:24:15 +0000
Message-ID: <E1mQS5P-0002Up-KB@gemulon.postgresql.org> (raw)

Fix hash_array

Commit a3d2b1bbe904b0ca8d9fdde20f25295ff3e21f79 neglected to
initialize the type_id field of the synthesized type cache entry, so
it would make a new one on every call.

Also, better use the per-function memory context for this; otherwise
it leaks memory.

Discussion: https://www.postgresql.org/message-id/flat/17158-8a2ba823982537a4%40postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/851ff9335742d22a3cb1a5ab789208e4ee01dcef

Modified Files
--------------
src/backend/utils/adt/arrayfuncs.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1mQS5P-0002Up-KB@gemulon.postgresql.org>
Permalink:  ../E1mQS5P-0002Up-KB@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1mQS5P-0002Up-KB@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: Fix hash_array
  In-Reply-To: <E1mQS5P-0002Up-KB@gemulon.postgresql.org>
  References: <E1mQS5P-0002Up-KB@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox