Content-Length: 257461 | pFad | http://github.com/postgrespro/postgres_cluster/commit/285ec6ded7330f25c2733a79be4755551b9054d6

21 Allocate EventWaitSet in CacheMemoryContext cxt, as conn hashtable. · postgrespro/postgres_cluster@285ec6d · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/285ec6ded7330f25c2733a79be4755551b9054d6

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy