| From: | Julien Cigar <jcigar(at)ulb(dot)ac(dot)be> |
|---|---|
| To: | basti <mailinglist(at)unix-solution(dot)de> |
| Cc: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: List all Indexes of a schema or database in CREATE syntax |
| Date: | 2014-01-31 16:00:20 |
| Message-ID: | 20140131160020.GD23311@mordor.lan |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
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(at)postgresql(dot)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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Cezariusz Marek | 2014-02-03 08:35:04 | IDENTIFY_SYSTEM |
| Previous Message | basti | 2014-01-31 15:18:09 | List all Indexes of a schema or database in CREATE syntax |