Re: initdb failure with Postgres 8.4.4 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: initdb failure with Postgres 8.4.4
Date
Msg-id 8338.1292255932@sss.pgh.pa.us
Whole thread Raw
In response to Re: initdb failure with Postgres 8.4.4  ("BRUSSER Michael" <Michael.BRUSSER@3ds.com>)
Responses Re: initdb failure with Postgres 8.4.4  ("BRUSSER Michael" <Michael.BRUSSER@3ds.com>)
List pgsql-hackers
"BRUSSER Michael" <Michael.BRUSSER@3ds.com> writes:
> I'm not sure if our current approach would work with v8.4. This is what we do in the nutshell:
> - build Postgres
> - do not run install
> - collect all generated libraries, executables and input files and pack them along with other app
> - distribute the tar-ball to the customer
> - untar and install the app
>     the installation script at some point calls initdb, create database, createlang, create user, 
>     it creates config files... done.

If that ever worked, with any version of Postgres, I'd be astonished.

Here is what you should do:

1. Build Postgres with --prefix set to some empty directory.
2. Run install.
3. Bundle up the resulting install tree as part of your tarball.  Do not
editorialize upon the relative locations of its contents.
4. Drop the install tree wherever you want on the target machine.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: hstores in pl/python
Next
From: Andrew Dunstan
Date:
Subject: Re: SQL/MED - file_fdw