Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kWkjW-0000sU-1i for pgsql-general@arkaria.postgresql.org; Sun, 25 Oct 2020 18:27:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kWkjU-0006h2-46 for pgsql-general@arkaria.postgresql.org; Sun, 25 Oct 2020 18:27:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kWkjT-0006gv-SX for pgsql-general@lists.postgresql.org; Sun, 25 Oct 2020 18:27:07 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kWkjK-0004hY-L0 for pgsql-general@lists.postgresql.org; Sun, 25 Oct 2020 18:27:06 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id 68B6B3C26; Sun, 25 Oct 2020 19:26:53 +0100 (CET) Date: Sun, 25 Oct 2020 19:26:53 +0100 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: Attaching database Message-ID: <20201025182653.GA11390@hjp.at> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="WIyZ46R2i8wDzkSu" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2020-10-19 20:21:05 +0200, Pavel Stehule wrote: > po 19. 10. 2020 v=A020:18 odes=EDlatel Igor Korot na= psal: > On Mon, Oct 19, 2020 at 12:51 PM Pavel Stehule > wrote: > > It is a different thing - postgresql_fdw does nested connect - it u= ses > > client-server protocol. > > > > For postgres connect and sql engine process is one entity - and eng= ine is > > written without a possibility to reconnect to another database. >=20 > So if I understand correctly the postgresql_fdw is creating a second > connection and uses it as kind of "virtualizing mechanism" > in order to give access to the second database. >=20 >=20 > yes - it does new connect to somewhere (local or remote server, but mecha= nism > is absolutely same) In case this isn't clear: It is the server (or more specifically, the foreign data wrapper) which opens that connection. To the client it looks like it's just accessing a normal table within the same database. hp --=20 _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | hjp@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" --WIyZ46R2i8wDzkSu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAl+Vw2gACgkQ8g5IURL+ KF1ImhAAmVhyHkIy2bnIAWXZN34DNx61UwGhqvXvMzLRjvlEcSvLp+iv6z5znGXP yokRZ2U4LducStPvRNSQXak0F7VZmwXOCxckDZWUxVQ3yvKW8+wZRs6ezZ/Q4lhn fCJwP5sGxzwrwqMdnQZXG792YTIvRgtDuxptRkXKorqnVRWCaMRuPa+lid728Mwk emCQVjVamwRTUPwYEXYN2CvTW1PEMOq5g15NbUZ9STMNUPafKsrzzWmO4/js8/TO qosLJTKMnQbdh69rAH+5Z6RYUbsxRUacyexA5frO3kdCujh9DZxRf74inepqcX79 Ti06vYOaLEZJgjE6asLqd7pqz5y5W557/GRDmqCiHMqSZHpNGleyghm0406nJD/p j6YhBabbhrZ1gzkaKbjBgkfbTcF7ovEbmgpO/EEMqtk70IRniQDr+MJb8Pk1aOo2 AtiSK0N3osoY+clg60ViJyoF95yjOseWz/Dz5azfT19N9JHthH0u+jUMmel1ImUt 3zLVPFFr31wGtBYe7HY/Aqnd+j4ZkxQL1UkFYZ5Evze/NmQ+pANtXKDAONnf3KIx pEM8BKlbM/jgqor+i0td0cCUpTFVrFc7tVsq29mKMzVs1gy8eUJt3FAwTTG/CdhV zww2zio0BO6hFZt0IR5na3+GfINNFwyYzZNnkIGOmz6WP6dGICE= =mo/m -----END PGP SIGNATURE----- --WIyZ46R2i8wDzkSu--