Re: pg_restore and create FK without verification check

From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: Hannu Krosing <hannu(at)tm(dot)ee>
Cc: ow <oneway_111(at)yahoo(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_restore and create FK without verification check
Date: 2003-11-26 11:33:28
Message-ID: 3FC48F88.7050905@pse-consulting.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hannu Krosing wrote:

>Andreas Pflug kirjutas K, 26.11.2003 kell 12:09:
>
>
>>ow wrote:
>>
>>
>>
>>>It appears there's not a lot of interest in discussing the possibility of FK
>>>constraint creation WITHOUT the verification check. How then should one handle
>>>the situation with pg_restore and large dbs where creation of FK constraint(s)
>>>may take hours?
>>>
>>>
>>>
>>>
>>I'd prefer a backup/restore method that dumps physical data, so at
>>restore time there's no need for recreation of FKs. But I didn't see any
>>feedback on this proposal either.
>>
>>
>
>Was this proposal a separate one from using WAL logs for PITR ?
>
>

Yes, I mentioned it just a few days when discussing dependency in pg_dump.
This is somewhat complementary to WAL and PITR. I'm seeking for a fast
way to dump and restore a complete database, like physical file copy,
without shutting down the backend. I was thinking of a BACKUP command
that streams out the files including any indexes and non-vacuumed
tuples. A database recreated from that wouldn't be as clean as a
pg_dump/pg_restored database, but it would be up much faster, and there
wouldn't be any dependency problem.
This doesn't really replace pg_dump/pg_restore, because it probably
wouldn't be able to upgrade a cluster. Still, it would be helpful for
disaster recovery.

Regards,
Andreas

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message ow 2003-11-26 12:04:54 Re: pg_restore and create FK without verification check
Previous Message Hannu Krosing 2003-11-26 10:35:25 Re: pg_restore and create FK without verification check