Release cache tuple when no longer needed
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 13 Apr 2022 16:19:38 +0000 (18:19 +0200)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 13 Apr 2022 16:19:38 +0000 (18:19 +0200)
commited0fbc8e5ac995eada933250c1d5535336442b97
treee7948cabf8794710c4676ea49c6f51d6918989a3
parent112fdb3528465cc14a2f1dff3dc27f100326d885
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.fnst@fujitsu.com>
Reported-by: Peter Smith <smithpb2250@gmail.com>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Discussion: https://postgr.es/m/CAHut+PvKTyhTBtYCQsP6Ph7=o-oWRSX+v+PXXLXp81-o2bazig@mail.gmail.com
src/backend/commands/publicationcmds.c
src/test/regress/expected/publication.out
src/test/regress/sql/publication.sql