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 1npXFX-0002U4-E3 for pgsql-general@arkaria.postgresql.org; Fri, 13 May 2022 15:30:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1npXFU-0000WE-5m for pgsql-general@arkaria.postgresql.org; Fri, 13 May 2022 15:30:36 +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 1npXFT-0000W4-Ra for pgsql-general@lists.postgresql.org; Fri, 13 May 2022 15:30:35 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1npXFR-0000nj-RF for pgsql-general@lists.postgresql.org; Fri, 13 May 2022 15:30:35 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 8C27E5C0161; Fri, 13 May 2022 11:30:32 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 13 May 2022 11:30:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc: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=fm3; t=1652455832; x= 1652542232; bh=m6Opgc5G12O6fr2FDmWxJkklWChHM8MPSVAU7sv7tQQ=; b=P JrgODj6T/+VpoK9VjC7ier9DiPV7dVDisZK3PlYTZ9vLuc6ST1KLQfdQsLKds7LB 417+JSIRetBrpUuw8S+vYMUC3evSmk5IRLGK35H4zyId8J/cSSJGT6annTSC4ejz WooijuSTy6LjuxvSHQNuOO6AhPveGkqXDXKgxfF5HnqXlUKztYQmEBkmbzMkGRDx gx0qZ3a3pGOMM2JJp2AYmMTHdeCqoHU42jzFKA+stxhNw5IXzQvJimIw4j02VmX3 zzX3YSRBMfEvpOgxqaD1DRa9s3XuBxKwk/IZRyCdZQFjSMxY54j0dqAKUhF6A0mo WO7xJbQ4C8LUUb2OYW6XQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1652455832; x=1652542232; bh=m6Opgc5G12O6f r2FDmWxJkklWChHM8MPSVAU7sv7tQQ=; b=xHt/MXnYrho85xdnuXlpyb2XEWz3K u8C7YiVxaviIUDMpIb/Wqwt9FUALAa1XT1kbQjuRfDSc+0bo1EaBPLTuBHUqMwRq HQ5R7cQz7pvDexjeSkC2kqtydVudGOul+jmRxU1WayZTfBXlKRQpym6KdBBooUNo aalbQqjAE3hTQ/E0QTwaEX4iMMjctt36scMliUqPRyumO3hgzJoIDXJuFd0LqyVF NkcBo/XS8LCwaBOrZmUEYSqivlerpjSztcj/jrEQoGQFrOIpCeDmADFHk4gO15LN pV5S/un/QkZ0cAy4/giDyKmW03a4/QxKy2qKVZ9FGHJ8eG8M7fk56g2ZA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrgeelgdekjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeehudfgtefhtedtheeiveetueektdejvdfhveekgfdu feegveetuddvuedvgeeggeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 13 May 2022 11:30:31 -0400 (EDT) Message-ID: <557fd2b6-dd2e-66ad-4920-25d173eaf10e@aklaver.com> Date: Fri, 13 May 2022 08:30:30 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: Restricting user to see schema structure Content-Language: en-US To: Bryn Llewellyn , Neeraj M R Cc: Tom Lane PostgreSQL , "David G. Johnston" , pgsql-general list References: <048ab2c5-ddf6-d039-3c2a-1828d8c9137b@aklaver.com> <569304.1652411286@sss.pgh.pa.us> <228E8A44-A504-4E0D-99BD-71B41812FFE2@yugabyte.com> From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 5/12/22 22:13, Bryn Llewellyn wrote: >> /neerajmr12219@gmail.com wrote:/ >> > What exactly do you mean by "have created a new user and granted > connection access to database"? As I understand it, there's no such > thing. I mentioned a simple test in my earlier email that showed that > any user (with no schema of its own and no granted privileges) can > connect to any database—and see the full metadata account of all its > content. I'm teaching myself to live with this. Besides the REVOKE CONNECT, it is also possible to prevent connections to a given database by a particular user by using settings in pg_hba.conf. -- Adrian Klaver adrian.klaver@aklaver.com