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

Re: pg_dump -Fc does not dump indexes

From: Michael Fuhr <mike(at)fuhr(dot)org>
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-28 04:43:04
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
On Fri, Jun 24, 2005 at 08:02:40PM -0700, Alberto wrote:
> 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. None 
> of the primary key or foreign key constraint are created. However simple 
> check constraints are created.

What version of PostgreSQL are you using?

Michael Fuhr

In response to

pgsql-admin by date

Next:From: Matthew T. O'ConnorDate: 2005-06-28 04:55:17
Subject: Re: vacuum taking longer over time
Previous:From: Peter EisentrautDate: 2005-06-28 00:47:43
Subject: Re: DRDB?

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