Skip to content

Commit de3077a

Browse files
committed
Bugfix. close heap relation in the case of races between backend and
'DROP EXTENSION aqo'.
1 parent 6c50453 commit de3077a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

storage.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ open_aqo_relation(char *heaprelnspname, char *heaprelname,
6767
/* Try to open index relation carefully. */
6868
*irel = try_relation_open(reloid, lockmode);
6969
if (*irel == NULL)
70+
{
71+
relation_close(*hrel, lockmode);
7072
goto cleanup;
73+
}
7174
return true;
7275

7376
cleanup:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy