Eva*_*oll 3 postgresql configuration postgresql-fdw
我在哪里设置postgres_fdw
. 具体我想添加use_remote_estimate
.
test=# SET use_remote_estimate=true;
ERROR: unrecognized configuration parameter "use_remote_estimate"
Run Code Online (Sandbox Code Playgroud)
postgres_fdw
不使用GUC 变量。的设置postgres_fdw
实际上是使用下的选项设置的CREATE SERVER
,
CREATE SERVER [IF NOT EXISTS] server_name [ TYPE 'server_type' ] [ VERSION 'server_version' ]
FOREIGN DATA WRAPPER fdw_name
[ OPTIONS ( option 'value' [, ... ] ) ];
Run Code Online (Sandbox Code Playgroud)
或与 ALTER SERVER
更改服务器的选项。
ADD
,SET
, 并DROP
指定要执行的操作。如果没有明确指定操作,则假定为 ADD。选项名称必须是唯一的;名称和值也使用服务器的外部数据包装库进行验证。
喜欢,
-- Set it if it's never been set
ALTER SERVER flybase
OPTIONS (ADD use_remote_estimate 'true');
-- Change it if it has been set
ALTER SERVER flybase
OPTIONS (SET use_remote_estimate 'false');
-- Drop it if it has never been set
ALTER SERVER flybase
OPTIONS (DROP use_remote_estimate);
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
2280 次 |
最近记录: |