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 <[email protected]> Reported-by: Peter Smith <[email protected]> Reviewed-by: Amit Kapila <[email protected]> Discussion: https://postgr.es/m/CAHut+PvKTyhTBtYCQsP6Ph7=o-owrsx+v+pxxlxp81-o2ba...@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(-)
