Schema dump

Sonam Sharma <[email protected]> Thu, 2 Jan 2020 12:45:10 +0530
Newsgroups gmane.comp.db.postgresql.general
Message-ID <CAM-M3Tmj=caRsGiyD9_uE_9Ks+GZzjoFQii5twC-H650_GkXFA@mail.gmail.com>
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