From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Release cache tuple when no longer needed |
Date: | 2022-04-13 16:24:56 |
Message-ID: | E1nefnc-000MCe-E1@gemulon.postgresql.org |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Release cache tuple when no longer needed
There was a small buglet in commit 52e4f0cd472d whereby a tuple acquired
from cache was not released, giving rise to WARNING messages; fix that.
While at it, restructure the code a bit on stylistic grounds.
Author: Hou zj <houzj(dot)fnst(at)fujitsu(dot)com>
Reported-by: Peter Smith <smithpb2250(at)gmail(dot)com>
Reviewed-by: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
Discussion: https://postgr.es/m/CAHut+PvKTyhTBtYCQsP6Ph7=o-oWRSX+v+PXXLXp81-o2bazig@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/ed0fbc8e5ac995eada933250c1d5535336442b97
Modified Files
--------------
src/backend/commands/publicationcmds.c | 95 ++++++++++++++++---------------
src/test/regress/expected/publication.out | 16 ++++--
src/test/regress/sql/publication.sql | 8 +++
3 files changed, 68 insertions(+), 51 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2022-04-13 17:27:43 | pgsql: Remove extraneous blank lines before block-closing braces |
Previous Message | Andrew Dunstan | 2022-04-13 14:38:06 | pgsql: Fix finalization for json_objectagg and friends |