Re: Standalone Windows Installation - Mailing list pgsql-general

From Craig Ringer
Subject Re: Standalone Windows Installation
Date
Msg-id 48E2F509.4020003@postnewspapers.com.au
Whole thread Raw
In response to Standalone Windows Installation  (Jörn Heid <heid@hs-heilbronn.de>)
List pgsql-general
Jörn Heid wrote:
> Hi.
>
> I want to use Postgres without installation. The problem is the
> dependencies on the Visual C dll (msvcrt).
> As far as I know it would be possible to include a manifest file (only
> for libpq.dll?) and bundle the dlls from c:\windows\WinSxS into the bin
> directory of Postgres.

That should work fine according to my understanding of the Windows
dynamic linker's behavour. I'm actually not even sure you'll need the
manifest, in that IIRC it should be embedded in the DLL if it was built
with a recent VC++.

You should also be able to bundle a private copy of the required VC++
runtime in the bin directory; it does not need to be installed in
WinSxS. I've done this with small Windows binaries I've distributed at
various points with no issues.

If you do this, make sure you do NOT put the PostgreSQL bin directory on
the PATH, as you may confuse any parallel installation of the official
PostgreSQL distribution. You should also use a different port to the
default, and if practical not listen on non-loopback TCP/IP interfaces.

--
Craig Ringer

pgsql-general by date:

Previous
From: Lennin Caro
Date:
Subject: Re: Counting unique rows as an aggregate.
Next
From: Tom Lane
Date:
Subject: Re: Running 2 versions of postgres on the same server at the same time ???