pgspider http fdw http several related configuration parameters

http request time configuration

  • session level
set http.timeout_msec = 10000;
SELECT http_set_curlopt('CURLOPT_TIMEOUT', '10');
  • Global level
ALTER DATABASE postgres SET "http.timeout_msec" TO 10000;

http keepalive 配置

  • session level
http.keepalive = 'on'
  • Global level
ALTER DATABASE postgres SET "http.keepalive" TO  "on";

http connection timeout configuration

  • session level
SELECT http_set_curlopt('CURLOPT_CONNECTTIMEOUT', '100')

Explanation

Other configuration parameters can be solved by http_set_curlopt

Reference material

https://github.com/pramsey/pgsql-http

Guess you like

Origin www.cnblogs.com/rongfengliang/p/12373833.html