Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VCtqg-00052G-C8 for pgsql-admin@arkaria.postgresql.org; Fri, 23 Aug 2013 16:04:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VCtqf-00005L-MK for pgsql-admin@arkaria.postgresql.org; Fri, 23 Aug 2013 16:04:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VCtqe-00005E-LL for pgsql-admin@postgresql.org; Fri, 23 Aug 2013 16:04:28 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VCtqS-0003rg-M7 for pgsql-admin@postgresql.org; Fri, 23 Aug 2013 16:04:27 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VCtqR-0003Fc-70 for pgsql-admin@postgresql.org; Fri, 23 Aug 2013 09:04:15 -0700 Date: Fri, 23 Aug 2013 09:04:15 -0700 (PDT) From: David Johnston To: pgsql-admin@postgresql.org Message-ID: <1377273855209-5768404.post@n5.nabble.com> In-Reply-To: References: <52177664.5030908@gmail.com> <1377270150147-5768391.post@n5.nabble.com> <52177BC0.1060007@gmail.com> <52178080.7010908@gmail.com> Subject: Re: question on the information_schema MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 1.8 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org raghu ram-4 wrote >> > If you are executing the SQL statement with "postgres" user > [Superuser],then you will see all information related to all objects > without any restrictions of the Ownership. > > If you are executing the SQL Statements with "saas" user > [Non-Superuser],then you will see the table information as owner of "saas" > user. Per the documentation: http://www.postgresql.org/docs/9.0/static/infoschema-columns.html "Only those columns are shown that the current user has access to (by way of being the owner or having some privilege)." So the restriction is NOT based on ownership but visibility and any tables created in the public schema are (by default) visible to all users and so should show up in a information_schema.column query for all users as well. I toss this out there for now but I have not been doing any kind of testing for this thread so I'm just reporting my existing understanding and what is shown in the documentation without verification. David J. -- View this message in context: http://postgresql.1045698.n5.nabble.com/question-on-the-information-schema-tp5768389p5768404.html Sent from the PostgreSQL - admin mailing list archive at Nabble.com. -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin