Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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

pgsql-admin by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group