Re: pg_dump -Fc does not dump indexes]

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alberto <nspmma(at)freenet(dot)de>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: pg_dump -Fc does not dump indexes]
Date: 2005-06-25 17:08:42
Message-ID: 27951.1119719322@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Alberto <nspmma(at)freenet(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message David Bear 2005-06-25 17:58:49 listening on tcp socket instead of unix domain
Previous Message Alberto 2005-06-25 15:55:30 pg_dump -Fc does not dump indexes]