projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcf2667
)
Fix relcache reference leak introduced by ce0fdbfe97.
author
Amit Kapila
<
[email protected]
>
Thu, 25 Feb 2021 02:18:24 +0000
(07:48 +0530)
committer
Amit Kapila
<
[email protected]
>
Thu, 25 Feb 2021 02:18:24 +0000
(07:48 +0530)
Author: Sawada Masahiko
Reviewed-by: Amit Kapila
Discussion: https://postgr.es/m/CAD21AoA7ZEfsOXQ9HQqMv3QYGsEm2H5Wk5ic5S=mvzDf-3a3SA@mail.gmail.com
src/backend/catalog/pg_subscription.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/catalog/pg_subscription.c
b/src/backend/catalog/pg_subscription.c
index c32fc8137d8efad42ffe93b62432aca83ed7f55f..4039768865194721a9adfea600bf7255c0a6d4cd 100644
(file)
--- a/
src/backend/catalog/pg_subscription.c
+++ b/
src/backend/catalog/pg_subscription.c
@@
-353,6
+353,7
@@
GetSubscriptionRelState(Oid subid, Oid relid, XLogRecPtr *sublsn)
if (!HeapTupleIsValid(tup))
{
+ table_close(rel, AccessShareLock);
*sublsn = InvalidXLogRecPtr;
return SUBREL_STATE_UNKNOWN;
}