Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 285ec6d

Browse files
committed
Allocate EventWaitSet in CacheMemoryContext cxt, as conn hashtable.
1 parent 4a522e1 commit 285ec6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/postgres_fdw/connection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ connect_pg_server(ConnCacheEntry *entry, ForeignServer *server, UserMapping *use
329329

330330
/* Here we will wait for the results */
331331
/* xxx check for postmaster death? */
332-
entry->wait_set = CreateWaitEventSet(TopMemoryContext, 2);
332+
entry->wait_set = CreateWaitEventSet(CacheMemoryContext, 2);
333333
AddWaitEventToSet(entry->wait_set, WL_LATCH_SET, PGINVALID_SOCKET,
334334
MyLatch, NULL);
335335
AddWaitEventToSet(entry->wait_set, WL_SOCKET_READABLE, PQsocket(conn), NULL, NULL);

0 commit comments

Comments
 (0)