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 1oFeny-0004MU-7k for pgsql-general@arkaria.postgresql.org; Sun, 24 Jul 2022 16:50: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 1oFenx-0000IO-3X for pgsql-general@arkaria.postgresql.org; Sun, 24 Jul 2022 16:50:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oFenw-0000Ha-Ox for pgsql-general@lists.postgresql.org; Sun, 24 Jul 2022 16:50:08 +0000 Received: from mx.systemcloud.org ([140.82.61.131]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oFent-0000qA-6v for pgsql-general@postgresql.org; Sun, 24 Jul 2022 16:50:07 +0000 Received: from mx.systemcloud.org (localhost [127.0.0.1]) by mx.systemcloud.org (Postfix) with ESMTP id 4LrTgH4y1SzCYrC for ; Sun, 24 Jul 2022 11:50:03 -0500 (-05) Authentication-Results: mx.systemcloud.org (amavisd-new); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=systemcloud.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=systemcloud.org; h=content-type:message-id:user-agent:references:in-reply-to :subject:to:from:date:mime-version; s=dkim; t=1658681403; x= 1661273404; bh=Somc41kJy9MVOPBDnyP8EhmoObsm4zA5UuTnFTbrHLQ=; b=C YJxFxBdlz3t4v/OWta/Wvx18uVygDE0vVweKLC+RYfXzh3ofwvZQXiBpD+qfitx/ bawnVVLk9EuKz1HQp6z+Xel08JaTiL+m68U1RGK6eQqg+0+ZrNu+ObhIOdQys1zQ 2zYLDeWp6RBXgAt+LrWoaZFcrwrjStM2r8wD0OowbxEiSoTwz+/tTAASAnQ92aeO Hki1WpxVVoS04GUUrgqzoBT8ct17nTkBDkp1qpR8QK0laSgLqRw1wLwchxEHIGx8 +iTvjBg0sfhS1g92nRNQs0hXLmEBsQQpfWMfQUgrg7VYozWBMRP3cS6iSeCyH1h3 wMMM5gZwUgqg5TTFQ/GSw== X-Virus-Scanned: Debian amavisd-new at guest.guest Received: from mx.systemcloud.org ([127.0.0.1]) by mx.systemcloud.org (mx.systemcloud.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id SGzsoniJNuvR for ; Sun, 24 Jul 2022 11:50:03 -0500 (-05) Received: from localhost (localhost [127.0.0.1]) by mx.systemcloud.org (Postfix) with ESMTPSA id 4LrTgG6j3nzCY9w for ; Sun, 24 Jul 2022 11:50:02 -0500 (-05) MIME-Version: 1.0 Date: Sun, 24 Jul 2022 11:50:02 -0500 From: xavier@datolibre.com To: pgsql-general@postgresql.org Subject: Re: Queries in another user's tables (SOLVED) In-Reply-To: References: <0cf87381f8d76308ed2e5ccd6dff9a14@datolibre.com> User-Agent: Roundcube Webmail Message-ID: <5b3be8427eb880c17dd923238259b537@datolibre.com> X-Sender: xavier@datolibre.com Content-Type: multipart/alternative; boundary="=_1b33177915d8e41e8ab4be3612872958" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --=_1b33177915d8e41e8ab4be3612872958 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Thank you very much! El 2022-07-24 04:19, Pavel Stehule escribi=C3=B3: > Hi >=20 > ne 24. 7. 2022 v 9:38 odes=C3=ADlatel napsal: >=20 >> Hello friends, I have a database base01 that belongs to user01 and on=20 >> the other hand a datebase base02 that belongs to user02. I need user01= =20 >> to make a query "SELECT * FROM base02.yourtable;" >>=20 >> How can you get this? >=20 > see https://www.postgresql.org/docs/current/postgres-fdw.html >=20 > Regards >=20 > Pavel --=_1b33177915d8e41e8ab4be3612872958 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8

Thank you very much!

 


El 2022-07-24 04:19, Pavel Stehule escribió:

Hi
 

ne 24. 7. 2022 v 9:38 odes&iac= ute;latel <xa= vier@datolibre.com> napsal:

Hello friends, I have a database base01 that belongs to user01 and on th= e other hand a datebase base02 that belongs to user02. I need user01 to mak= e a query "SELECT * FROM base02.yourtable;"

How can you get this?

 
 
Regards
 
Pavel
--=_1b33177915d8e41e8ab4be3612872958--