How pg_net works: Request queue and responses
masterPG_NET operates asynchronously using a background worker and two unlogged tables in the net schema:
net.http_request_queue: Stores requests waiting to be executed. When you call a request function (likehttp_get), an entry is added here. The background worker processes these entries and removes them upon success.net._http_response: Stores the results of executed requests, includingstatus_code,content,headers, and error messages.
Important: Do not insert directly into net.http_request_queue. You must use the provided API functions (net.http_get, net.http_post, net.http_delete) to ensure the background worker is signaled to process the request.