set http.timeout_msec = 10000;
SELECT http_set_curlopt(‘CURLOPT_TIMEOUT‘, ‘10‘);
ALTER DATABASE postgres SET "http.timeout_msec" TO 10000;
http.keepalive = ‘on‘
ALTER DATABASE postgres SET "http.keepalive" TO "on";
SELECT http_set_curlopt(‘CURLOPT_CONNECTTIMEOUT‘, ‘100‘)
其他的配置参数可以通过http_set_curlopt 解决
https://github.com/pramsey/pgsql-http
pgspider http fdw http 相关的几个配置参数
原文:https://www.cnblogs.com/rongfengliang/p/12373833.html