Re: pg_dump -Fc does not dump indexes] - Mailing list pgsql-admin

From Tom Lane
Subject Re: pg_dump -Fc does not dump indexes]
Date
Msg-id 27951.1119719322@sss.pgh.pa.us
Whole thread Raw
In response to pg_dump -Fc does not dump indexes]  (Alberto <nspmma@freenet.de>)
List pgsql-admin
Alberto <nspmma@freenet.de> writes:
> I have tried to backup my postgres database with
>    pg_dump -Fc $db > ~/backups/$db.backup.c
> and restore it with:
>    createdb -U postgres -D aestel_admin -T template0 restoreTMP
>    pg_restore -d restoreTMP -U postgres $db.backup.c

> I do not get any error messages but none of my indexes are created.

Works for me ... can you create a self-contained test case?  What PG
version are you using, anyway (and are you sure the pg_dump and
pg_restore programs are of the same version)?

            regards, tom lane

pgsql-admin by date:

Previous
From: Alberto
Date:
Subject: pg_dump -Fc does not dump indexes]
Next
From: David Bear
Date:
Subject: listening on tcp socket instead of unix domain