Restore dabase with PgDAC

Discussion of open issues, suggestions and bugs regarding PgDAC (PostgreSQL Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
xeo
Posts: 1
Joined: Sun 03 Jul 2011 20:40

Restore dabase with PgDAC

Post by xeo » Sun 03 Jul 2011 20:54

Hello,
I'm new to PgDAC, and I like to know if there is a way of restoring
a database from a file made with pg_dump.

thank you in advance.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Mon 04 Jul 2011 09:15

Hello,

Yes, you can restore data that was saved using the PgDump.BackupToFile method using the PgDump.RestoreFromFile.

You can get more detailed information in the PgDAC help, TDADump Methods topic.

Post Reply