From xavier@datolibre.com Sun Jul 24 07:37:54 2022 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 1oFWBi-0007s7-Bf for pgsql-general@arkaria.postgresql.org; Sun, 24 Jul 2022 07:38:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oFWBh-0007lL-6A for pgsql-general@arkaria.postgresql.org; Sun, 24 Jul 2022 07:38:05 +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 1oFWBg-0007lB-Rj for pgsql-general@lists.postgresql.org; Sun, 24 Jul 2022 07:38:04 +0000 Received: from mx.systemcloud.org ([140.82.61.131]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oFWBa-0006c3-C7 for pgsql-general@postgresql.org; Sun, 24 Jul 2022 07:38:03 +0000 Received: from mx.systemcloud.org (localhost [127.0.0.1]) by mx.systemcloud.org (Postfix) with ESMTP id 4LrFQD4K8yzCYrC for ; Sun, 24 Jul 2022 02:37:56 -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:subject:to:from:date :mime-version; s=dkim; t=1658648275; x=1661240276; bh=ea6/op8ODZ MOqj3aOZp6MbRxdgru6RtI2pV8o/WMPFo=; b=VAm+Y+A1zNCMp8wYuOYkfVmHJ9 051RT9zB85w1w/ocThd/GHuXz91hLFgcRzmDWJQSYHiqImG5nhBiNzaDqZLCfy8x jRAnqy85+/QH1fJPknOuWglhCIh808ht8xxxVub+cfRpRiQPuTINsXC4noEGbf5s S+VuWkMEaTlCaCCbsKr70MiUu+DhRTSTizdIjnpvGI1bkbVfOj/IgIISSj82t6/w TiA0MlMGnZzeyvC74ODhn6WJgyb+t9w4NwY+lIDazTwQ1SZKdkAFlT6Q7cJpGPYR 9qovvuCfFEIKqkBVUt9ZJ9WHNlBjRZRqQnL3RPJ3pfQSKeN8A6D7v6eEGQ3Q== 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 KlfaOryZMlEd for ; Sun, 24 Jul 2022 02:37:55 -0500 (-05) Received: from localhost (localhost [127.0.0.1]) by mx.systemcloud.org (Postfix) with ESMTPSA id 4LrFQB69v4zCYB7 for ; Sun, 24 Jul 2022 02:37:54 -0500 (-05) MIME-Version: 1.0 Date: Sun, 24 Jul 2022 02:37:54 -0500 From: xavier@datolibre.com To: pgsql-general@postgresql.org Subject: Queries in another user's tables User-Agent: Roundcube Webmail Message-ID: <0cf87381f8d76308ed2e5ccd6dff9a14@datolibre.com> X-Sender: xavier@datolibre.com Content-Type: multipart/alternative; boundary="=_cd261b667acad84d4f02bda92e0bee53" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --=_cd261b667acad84d4f02bda92e0bee53 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Hello friends, I have a database base01 that belongs to user01 and on the other hand a datebase base02 that belongs to user02. I need user01 to make a query "SELECT * FROM base02.yourtable;" How can you get this? --=_cd261b667acad84d4f02bda92e0bee53 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8

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?

--=_cd261b667acad84d4f02bda92e0bee53-- From pavel.stehule@gmail.com Sun Jul 24 09:19:10 2022 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 1oFXmG-0003h9-DE for pgsql-general@arkaria.postgresql.org; Sun, 24 Jul 2022 09:19:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oFXmD-0005xc-NK for pgsql-general@arkaria.postgresql.org; Sun, 24 Jul 2022 09:19:53 +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 1oFXmD-0005xS-5T for pgsql-general@lists.postgresql.org; Sun, 24 Jul 2022 09:19:53 +0000 Received: from mail-oa1-x34.google.com ([2001:4860:4864:20::34]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oFXm8-0007MP-6F for pgsql-general@postgresql.org; Sun, 24 Jul 2022 09:19:51 +0000 Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-10d9213b77aso11327214fac.5 for ; Sun, 24 Jul 2022 02:19:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SAKzAkcqf+yREqWhIVvXFW9T05f8ecMdWXf5m0v5D0M=; b=fPVmT7o6dqJmaYGLiauIV9dT7GHCJLzpaYHbqmSrm/+4cuhuB4W7ZruU8Tp6koMEV+ tRMoLstkUMQfcpj7qgf1cvYQPCq+EV7eZx3/RuqmNx3FduuLmW5e5TUNhIGcXAeZihdT csizsUqGIrFy70zrSzheycXOGVwPB3wPUPSW2rD+ynmr5r2wMCiy/HPSps0+nDk4qxnD 9U6KVXiKeHs8H6Dt6T6BHelSFgpdubgZLTqqAelZey1UZr9sclCJAOn1f/0gLcINR4Tu fkaJ5g2tEZpxByCkmJCkTPxnRGQIp4L03gHlbUyAxWe7zaflDnj4Wb19+a1zK4VgWq28 dlbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SAKzAkcqf+yREqWhIVvXFW9T05f8ecMdWXf5m0v5D0M=; b=tyccWwqo9PLMAi5XEAg6UsXDYs7v38jiEmwlggwC2lfOCLsfzduNei587KMnkbGb7j TNPICFMCvoCYUUMuq1wJjErLMV0OEyYPwpmtCBVzAp6VqpcypKwVWYdcTqnanjubMNY7 jr+OFKZ5OlYSzzWa7bqVnVQdImoAlFcqJp4IlK+H7dUaY8L9zFRJWg3Zq/e9zn8vt8Hy lT9r9iL5g4LrpsuMU9HR3vtEySBqEnv9EeNNMTC1pXi036G+vRRtIC1vUmDD0acw+vGi zSvCQwfAVgYzMHu5nx7MHT5N7BhX5uwcMNwH48kZqv3Xo6irc9t2bme5fD6oy0qw5JH3 5KIg== X-Gm-Message-State: AJIora+RndQQdsq45slK/6xlkgmPreE9+0FAoy0ax614PsDkK1la5wkP eVqiOlLOcKrB0Z6qS4/Z/pPG0gXJetPYhdeLqnuyqLcb3cw= X-Google-Smtp-Source: AGRyM1st39cPLDCu7N0pa/URIFf6MQiIQu5sVOfGb9co2twlsVGD/xBX/iB4FY+pIWt2TRNT9KXAhLmBiP/spxjLUZI= X-Received: by 2002:a05:6870:4210:b0:f3:20cd:7904 with SMTP id u16-20020a056870421000b000f320cd7904mr11784448oac.284.1658654387045; Sun, 24 Jul 2022 02:19:47 -0700 (PDT) MIME-Version: 1.0 References: <0cf87381f8d76308ed2e5ccd6dff9a14@datolibre.com> In-Reply-To: <0cf87381f8d76308ed2e5ccd6dff9a14@datolibre.com> From: Pavel Stehule Date: Sun, 24 Jul 2022 11:19:10 +0200 Message-ID: Subject: Re: Queries in another user's tables To: xavier@datolibre.com Cc: pgsql-general@postgresql.org Content-Type: multipart/alternative; boundary="0000000000008b88ca05e489911a" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000008b88ca05e489911a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi ne 24. 7. 2022 v 9:38 odes=C3=ADlatel napsal: > Hello friends, I have a database base01 that belongs to user01 and on the > 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? > see https://www.postgresql.org/docs/current/postgres-fdw.html Regards Pavel --0000000000008b88ca05e489911a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Pavel
--0000000000008b88ca05e489911a-- From adrian.klaver@aklaver.com Sun Jul 24 16:29:06 2022 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 1oFeTj-0003Xr-EM for pgsql-general@arkaria.postgresql.org; Sun, 24 Jul 2022 16:29:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oFeTi-0002qs-A4 for pgsql-general@arkaria.postgresql.org; Sun, 24 Jul 2022 16:29:14 +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 1oFeTh-0002qg-WF for pgsql-general@lists.postgresql.org; Sun, 24 Jul 2022 16:29:14 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oFeTf-00029y-DL for pgsql-general@postgresql.org; Sun, 24 Jul 2022 16:29:12 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 43DC25C00CC; Sun, 24 Jul 2022 12:29:08 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sun, 24 Jul 2022 12:29:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1658680148; x= 1658766548; bh=yZsq4l3O0DD/7xPLQGySZbs8Zt17w/164scbFsk0Uig=; b=r GX0HOw4jAc/mLU6Imv+0yCadFDYffLT1HnLy64ETiiJXcSoJItbYB3Nx/9qB4U0c dK/sqPV0Hv+1UB2TdUTF6wjlnpLzi70eBQK0M4zCfcJNSpA3mdxYZyzIC/BJ8rxh RKw3EdnGXi93jF8BOIOO1uVl9UrAQkiCbd1y3LjnXXyq6bOKGvP0dwTl0qWZ3SjP Wn+PjvyGYfXO7IgMd0XQx3Vu6N1SfPBfGYrqWWrkdbuZLodNmg/evYJKpoAlbPkZ 59IXKtlXgt+sFLIotLmufDRSCbuAAOnJKMreEmUHJCJ6YCcM0U/Mj5E1oru/B5qg IS8iDyyD8VDKrZ01YVt0g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1658680148; x=1658766548; bh=y Zsq4l3O0DD/7xPLQGySZbs8Zt17w/164scbFsk0Uig=; b=0N5Jrzk6lTY/g49l+ JcfH/9ljm35gLCdXQ2zDXvN5hgQQmtn9KttYWcFnyGMkoDMYXFGgfgspkbRaUL1/ BP6m5tXfZKRmB5QrdStyUxktHW6VTF4M1qs6mA70mAz87VRmgZiSoDLX23MUO/mT r1/2JdHHBwjVFYbnoawbGp2uFpLTrjylm7qOfQubMkYR5+Ic1YWZN+oGMLbhceEi 1foheSQ6jTFH16vCc7TTKHH/vdvsYPEmgReL6tEIfWx+bZm+b42U540LVtg9qYH/ bJG5WYQ0te8OiFztu9ZpSzQX7wOMFzTtAUjJFD78v+jlS93aAasIMC9fXRVjOni4 f8btA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvddtiedguddtvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesth ejredttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdr khhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeevvdekie fhudfhhfdtkeelgeffudeigfetjeegfffghfetfeelledugfelleegveenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrg hvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 24 Jul 2022 12:29:07 -0400 (EDT) Message-ID: <51d05f6c-229d-5730-295e-e7f5c087ccc1@aklaver.com> Date: Sun, 24 Jul 2022 09:29:06 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: Queries in another user's tables Content-Language: en-US To: xavier@datolibre.com, pgsql-general@postgresql.org References: <0cf87381f8d76308ed2e5ccd6dff9a14@datolibre.com> From: Adrian Klaver In-Reply-To: <0cf87381f8d76308ed2e5ccd6dff9a14@datolibre.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 7/24/22 00:37, xavier@datolibre.com wrote: > Hello friends, I have a database base01 that belongs to user01 and on > the other hand a datebase base02 that belongs to user02. I need user01 > to make a query "SELECT * FROM base02.yourtable;" > > How can you get this? > In what client are you doing this? -- Adrian Klaver adrian.klaver@aklaver.com