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