Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W9GW9-0002S3-TN for pgsql-sql@arkaria.postgresql.org; Fri, 31 Jan 2014 16:00:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W9GW9-000117-DZ for pgsql-sql@arkaria.postgresql.org; Fri, 31 Jan 2014 16:00:33 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W9GW8-000111-Lu for pgsql-sql@postgresql.org; Fri, 31 Jan 2014 16:00:32 +0000 Received: from relaygateway02.edpnet.net ([212.71.1.211]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W9GW0-0000NW-Op for pgsql-sql@postgresql.org; Fri, 31 Jan 2014 16:00:32 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlcGAF/H61LV04zG/2dsb2JhbABZgww4g1i6N4EJF3SCJQEBBAEjMxgLEAsYAgIFBA8OAgIPBSUkEwmHdAwJq0CYVYhEF4EpjVkHgm81gRQEmCkBkiGDLjs X-IPAS-Result: AlcGAF/H61LV04zG/2dsb2JhbABZgww4g1i6N4EJF3SCJQEBBAEjMxgLEAsYAgIFBA8OAgIPBSUkEwmHdAwJq0CYVYhEF4EpjVkHgm81gRQEmCkBkiGDLjs X-IronPort-AV: E=Sophos;i="4.95,758,1384297200"; d="scan'208";a="225547256" Received: from 213.211.140.198.dyn.edpnet.net (HELO mordor.lan) ([213.211.140.198]) by relaygateway02.edpnet.net with ESMTP/TLS/DHE-RSA-AES256-SHA; 31 Jan 2014 16:40:56 +0100 Date: Fri, 31 Jan 2014 17:00:20 +0100 From: Julien Cigar To: basti Cc: pgsql-sql@postgresql.org Subject: Re: List all Indexes of a schema or database in CREATE syntax Message-ID: <20140131160020.GD23311@mordor.lan> References: <52EBB642.5080804@unix-solution.de> <52EBBEB1.5050808@unix-solution.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <52EBBEB1.5050808@unix-solution.de> User-Agent: Mutt/1.5.22 (2013-10-16) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org On Fri, Jan 31, 2014 at 04:18:09PM +0100, basti wrote: > Hello, > > Is there a way to List all indexes of a schema or a database in CREATE > syntax? check pg_indexes (and the indexdef colum) > > example for postgres database: > > > Tablename Indexname CREATE_syntax > > pg_amop pg_amop_fam_strat_index CREATE UNIQUE ... > pg_amop pg_amop_opr_fam_index CREATE UNIQUE ... > pg_attribute pg_attribute_relid_attnam_index CREATE UNIQUE ... > > Regards, > Basti > > > > > -- > Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-sql -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql