Schema dump - Mailing list pgsql-general

From Sonam Sharma
Subject Schema dump
Date
Msg-id CAM-M3Tmj=caRsGiyD9_uE_9Ks+GZzjoFQii5twC-H650_GkXFA@mail.gmail.com
Whole thread Raw
Responses Re: Schema dump
List pgsql-general
I took a schema dump using : pg_dump -n schema dbname .

When I restored this , it doesn't contain the constraints and indexes. Can someone please help how to take a dump including all 

pgsql-general by date:

Previous
From: Matthias Apitz
Date:
Subject: Re: How to reset a server error '25P02 in_failed_sql_transaction'
Next
From: Tom Lane
Date:
Subject: Re: Schema dump