Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VCt27-00038b-Ov for pgsql-admin@arkaria.postgresql.org; Fri, 23 Aug 2013 15:12:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VCt27-0002Bo-7A for pgsql-admin@arkaria.postgresql.org; Fri, 23 Aug 2013 15:12:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VCt26-0002Ah-4x for pgsql-admin@postgresql.org; Fri, 23 Aug 2013 15:12:14 +0000 Received: from mail-we0-x22f.google.com ([2a00:1450:400c:c03::22f]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VCt23-0002rS-Gf for pgsql-admin@postgresql.org; Fri, 23 Aug 2013 15:12:13 +0000 Received: by mail-we0-f175.google.com with SMTP id n5so669758wev.20 for ; Fri, 23 Aug 2013 08:12:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:disposition-notification-to:date:from:user-agent :mime-version:to:cc:subject:references:in-reply-to:content-type; bh=r9WOIr7944PkYi1J2RAaYrWk/4xm1g5jhgK7SBT+ibc=; b=oc4063Xoy7SXtT+3XCOCvkvM/xsK+z3j0Q+8jlHC1hvah1AvNTNo3j9S0N86sR6dTy kyeWfoehrqkD88F8xg3yVeobqekP2wxn+lh9fWriHgajS2HESrMd9QJRm+W8uG5MHHxp earDFU8Z+9zCQL5rZBZOeALUjigyrUbgcHoNWxqe+fd8ul8v3TA8MNzuMJ7HUzu1Xr4H FnaM2am8r+g/JORQx662Nr4miCHjAjmIbqJRSeXU7ci6RrhCLV3yNhy206zRRHNDz7MG YZaCtOPciLjWBwmpjC59b7mAWJfdBsRP4kPNixOnqn4E2rQGXqH0qJnOHf5V0om56Tga KDmw== X-Received: by 10.194.7.234 with SMTP id m10mr141314wja.42.1377270731085; Fri, 23 Aug 2013 08:12:11 -0700 (PDT) Received: from [192.168.1.3] ([151.77.181.153]) by mx.google.com with ESMTPSA id eb3sm4629799wic.10.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 Aug 2013 08:12:10 -0700 (PDT) Message-ID: <52177BC0.1060007@gmail.com> Date: Fri, 23 Aug 2013 17:12:00 +0200 From: Salvatore Barone User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130704 Icedove/17.0.7 MIME-Version: 1.0 To: David Johnston CC: pgsql-admin@postgresql.org Subject: Re: question on the information_schema References: <52177664.5030908@gmail.com> <1377270150147-5768391.post@n5.nabble.com> In-Reply-To: <1377270150147-5768391.post@n5.nabble.com> Content-Type: multipart/alternative; boundary="------------020603090901020308050108" X-Pg-Spam-Score: -2.0 (--) 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 This is a multi-part message in MIME format. --------------020603090901020308050108 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit I'm not stupid, I added some columns before sending the query. I'm trying to write a query that returns the name and other information about the columns of a database. the query that is sent is the following select * from information_schema.columns col where col.table_schema!='pg_catalog'and col.table_schema!='information_schema' if i sent the query as "postgres", the result is a table that contain the the right column list. If I sent the query as "ssaa", the result is an empty table. I must to be able to retrieve the list of tables as a user "ssaa". -- Saluti, Salvatore Barone --------------020603090901020308050108 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit I'm not stupid, I added some columns before sending the query. I'm trying to write a query that returns the name and other information about the columns of a database. the query that is sent is the following

select * from information_schema.columns col
where col.table_schema!='pg_catalog'and col.table_schema!='information_schema'


if i sent the query  as "postgres", the result is a table that contain the the right column list. If I sent the query as "ssaa", the result is an empty table.
I must to be able to retrieve the list of tables as a user "ssaa".
-- 
Saluti,
Salvatore Barone
--------------020603090901020308050108--