Re: What are the minimal files required to backup a postgresql database

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: Alban Hertroys <dalroi(at)solfertje(dot)student(dot)utwente(dot)nl>
Cc: voipfc(at)gmail(dot)com, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: What are the minimal files required to backup a postgresql database
Date: 2010-06-14 15:02:16
Message-ID: 4C164478.4090807@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 14/06/2010 9:14 PM, Alban Hertroys wrote:
> On 14 Jun 2010, at 14:20, Frank Church wrote:
>
>> I need to package the ability to backup a PostgreSQL database in my application?
>
> What are you trying to accomplish by that?
>
>> I obviously need to add pg_dump.exe to the package, and the dlls
>> required are listed below,
>
> You can check what dll's an executable depends on by using some MS tools. There's some documentation about that in the postgres wiki IIRC, look for debugging tools on windows.

depends.exe from dependencywalker.com .

Basically, ship everything in the `bin' directory where pg_dump lives if
it's listed by depends.exe as used by pg_dump. Also make sure to provide
and silent-install the MSVC++ 2005 redist, which you can get from Microsoft.

Do *NOT* ship any system DLLs.

> Something to do with SSL apparently; you should only need that if you plan to use pg_dump over SSL.

That depends entirely on how DLL linkage is done. If it's an immediate
dependency rather than a delayed dependency, which it will be unless
configured otherwise, pg_dump will fail to load without that DLL even if
it's not going to use ssl.

I'm not on a Windows box with PG at the moment so I can't test.

--
Craig Ringer

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2010-06-14 15:29:09 Re: Is there a way to backup Postgres via SQL commands?
Previous Message Craig Ringer 2010-06-14 14:59:34 Re: Is there a way to backup Postgres via SQL commands?