Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ia0Fl-000532-ME for pgsql-docs@arkaria.postgresql.org; Wed, 27 Nov 2019 16:33:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ia0Fk-0000hL-70 for pgsql-docs@arkaria.postgresql.org; Wed, 27 Nov 2019 16:33:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ia0Fj-0000hE-KQ for pgsql-docs@lists.postgresql.org; Wed, 27 Nov 2019 16:33:19 +0000 Received: from mail-yb1-xb34.google.com ([2607:f8b0:4864:20::b34]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ia0Fh-0006J5-0o for pgsql-docs@postgresql.org; Wed, 27 Nov 2019 16:33:18 +0000 Received: by mail-yb1-xb34.google.com with SMTP id h23so9218212ybg.2 for ; Wed, 27 Nov 2019 08:33:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=qgggwVoWb9v76VWwSZdXmGn5Atf6kfMdmkcTMKlKJwo=; b=oIST4bUe7hhzu6IecICcBZHq8f2tnX+FjUYJTrQWF9gfRqMbfrCUg0IRR/ZuIL7ODg 4TBk/pBB6gquAlkm9drc5eWqTuRv5yjU27RKodBuC8mBluuL0Nu5LUla5uBR+IwXE3Sv qjVIeCjOjfPMXYZTH3uHOpszK9dVCVWi4KDoRpcKRt6CLKftp+Mob15g7Hjrcjn4j7sR 8EEi3sfdyur/jNxjnMd1IkrQ3Ujc0EJqN9zSQSd+SKUb11r9LUUkrGPjJEwpao4sfUYJ ZIU9Gxwl5ztaXVwsFux03B3MwlW8DVY364GomlfwxGU/kW/FV1AkkXFOoj8vzhLMmt4v pNMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=qgggwVoWb9v76VWwSZdXmGn5Atf6kfMdmkcTMKlKJwo=; b=D519HQ+zshII+XqcQdlBaXeo9qoBNipAIvIH5E1De9Wymzh7JaSx4N4HBr2XrSvfyZ iS3DUqvZEv3A8CocklNETc4egJoVqieADJAMJn5Q9tGryvvDpv8w/KHela3JZOHJ8DLQ jTDN2jQIauexv5aaGDzrYHWW37aghFl+QYgdNTIbyOB6zK/mhHxMoWKEl4PGoYMKb3zY FGQkaR48BArPLwFNdSAFQZC7Oc0nwxkXCxn4AWxEwLjhuyNDA3BZp/KAmiVZGMbQgicD +YAp/a8fvJzYb4Mcg/rxjU84Ux38jU6Bbvgo3a7KwNH/VDmGPyjZRhyvv+FUHgmW9fKz RB8Q== X-Gm-Message-State: APjAAAU62m7wnLIq8f0Zvnr3DSg4kuzj4PwOwRN2dbKDPHsFYtiSWXNp bjcMdVEBpWUsK+eDKSoVGH76GBL62eiD77s31/f2Wuo= X-Google-Smtp-Source: APXvYqx+X/T8fJ/0aiquHklyJzR1ZK8uVrm5Jf/yiM38yhFRQ9VCPsHbYGUxE1Oh3aJy29m2p5VkrmSKKPTWRFLUYOQ= X-Received: by 2002:a25:6789:: with SMTP id b131mr33460609ybc.429.1574872395175; Wed, 27 Nov 2019 08:33:15 -0800 (PST) MIME-Version: 1.0 From: Jeff Janes Date: Wed, 27 Nov 2019 11:33:03 -0500 Message-ID: Subject: document effect of USAGE on foreign server to dblink To: pgsql-docs@postgresql.org Content-Type: multipart/mixed; boundary="000000000000ae93ae0598568d72" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000ae93ae0598568d72 Content-Type: multipart/alternative; boundary="000000000000ae93ac0598568d70" --000000000000ae93ac0598568d70 Content-Type: text/plain; charset="UTF-8" I think that the permissions around the usage of foreign server names as connection names in dblink should be documented, as in the attached. Also, for dblink itself it says "It is recommended to use the foreign-data wrapper dblink_fdw when defining the foreign server". Is there a reason for this recommendation? postgres_fdw seems to work fine on the surface, is there some hidden trap in using it? Cheers, Jeff --000000000000ae93ac0598568d70 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I think that the permissions=C2=A0around the usage of fore= ign server names as connection names in dblink should be documented, as in = the attached.

Also, for dblink itself it says "It i= s recommended to use the foreign-data wrapper dblink_fdw when defining the = foreign server".=C2=A0 Is there a reason for this recommendation?=C2= =A0 postgres_fdw seems to work fine on the surface, is there some hidden tr= ap in using it?

Cheers,

Jef= f
--000000000000ae93ac0598568d70-- --000000000000ae93ae0598568d72 Content-Type: application/octet-stream; name="server_dblink_priv.patch" Content-Disposition: attachment; filename="server_dblink_priv.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_k3hi2wrm0 ZGlmZiAtLWdpdCBhL2RvYy9zcmMvc2dtbC9kZGwuc2dtbCBiL2RvYy9zcmMvc2dtbC9kZGwuc2dt bAppbmRleCAwYmUwNzc0Li5hMTcxYTAwIDEwMDY0NAotLS0gYS9kb2Mvc3JjL3NnbWwvZGRsLnNn bWwKKysrIGIvZG9jL3NyYy9zZ21sL2RkbC5zZ21sCkBAIC0xODI5LDcgKzE4MjksOCBAQCBSRVZP S0UgQUxMIE9OIGFjY291bnRzIEZST00gUFVCTElDOwogICAgICAgPHBhcmE+CiAgICAgICAgRm9y IGZvcmVpZ24gc2VydmVycywgYWxsb3dzIGNyZWF0aW9uIG9mIGZvcmVpZ24gdGFibGVzIHVzaW5n IHRoZQogICAgICAgIHNlcnZlci4gIEdyYW50ZWVzIG1heSBhbHNvIGNyZWF0ZSwgYWx0ZXIsIG9y IGRyb3AgdGhlaXIgb3duIHVzZXIKLSAgICAgICBtYXBwaW5ncyBhc3NvY2lhdGVkIHdpdGggdGhh dCBzZXJ2ZXIuCisgICAgICAgbWFwcGluZ3MgYXNzb2NpYXRlZCB3aXRoIHRoYXQgc2VydmVyLiBH cmFudGVlcyBtYXkgYWxzbyB1c2UgdGhlIGZvcmVpZ24KKyAgICAgICBzZXJ2ZXIgYXMgYSBjb25u ZWN0aW9uIG5hbWUgaW4gPHhyZWYgbGlua2VuZD0iZGJsaW5rIi8+LgogICAgICAgPC9wYXJhPgog ICAgICA8L2xpc3RpdGVtPgogICAgIDwvdmFybGlzdGVudHJ5Pgo= --000000000000ae93ae0598568d72--