PgDump problem

Discussion of open issues, suggestions and bugs regarding PgDAC (PostgreSQL Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
mfw
Posts: 1
Joined: Fri 26 Apr 2013 08:10

PgDump problem

Post by mfw » Fri 26 Apr 2013 08:32

I'm using the PgDump component to dump several tables to a file. But if I select the tables with the property TableNames no tables are dumped at all.

example code I'm using

dumpquery.TableNames := 'Table1,Table2';

I don't get the dump of the actual tables.

Thx for help

DemetrionQ
Devart Team
Posts: 271
Joined: Wed 23 Jan 2013 11:21

Re: PgDump problem

Post by DemetrionQ » Sat 27 Apr 2013 13:33

Hello.

In order to store the table data when backing up, the TPgDump.Mode property must be set to dmData or dmAll, and the doTables parameter in the TPgDump.ObjectTypes options must be set to True. Please make sure the specified options and property are set properly.
You can find the detailed information about TPgDump.Mode and TPgDump.ObjectTypes in the PgDAC documentation.

abourg
Posts: 2
Joined: Sat 24 Aug 2013 15:57

Re: PgDump problem

Post by abourg » Tue 27 Aug 2013 09:53

Hello.
I'm using the PgDump component to dump several tables to a file too using default setting for the PgDump component (especially Options.AddDrop := True)
but in the resulting file I don't see any DROP commands.. for tables, sequences, indexes, etc.
Why?

p.s.
-- PgDAC version: 4.0.2
-- PostgreSQL server version: 8.4.17
-- PostgreSQL client version: Direct

DemetrionQ
Devart Team
Posts: 271
Joined: Wed 23 Jan 2013 11:21

Re: PgDump problem

Post by DemetrionQ » Wed 28 Aug 2013 11:12

Hello.

The AddDrop option is responsible for deleting data in tables. For the time being, on forming backup, TPgDump doesn't add instructions for deleting database objects. We will consider the possibility to add this functionality in future.

abourg
Posts: 2
Joined: Sat 24 Aug 2013 15:57

Re: PgDump problem

Post by abourg » Sat 22 Jan 2022 12:56

Hi,
nothing has changed over the years for PgDump.pas

In each version PgDAC I have to add my code in PgDump.pas

For example, my latest version 7.1.1 is here

https://disk.yandex.ru/d/THAPc5_wBgHdvA

evgeniym
Devart Team
Posts: 103
Joined: Thu 13 May 2021 07:08

Re: PgDump problem

Post by evgeniym » Tue 25 Jan 2022 15:28

Hi there,
We are working on this functionality extension.
An option to delete objects before creation will be added in the nearest release.

Post Reply