pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim C. Nasby <jnasby@pervasive.com>
To: Andy Shellam <andy.shellam@mailnetwork.co.uk>
Cc: Jarek <jarek@poczta.srv.pl>
Cc: pgsql-admin@postgresql.org
Subject: Re: Standalone Postgres
Date: Wed, 7 Jun 2006 17:39:25 -0500
Message-ID: <20060607223925.GD45331@pervasive.com> (raw)
In-Reply-To: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAAC4AAAAAAAAAt+qV6pqKPEmXG74TlFgX5gEAlpDSN+DrMEWnumhoRHpQKQAAAbLc9wAAEAAAABNWfFYLLSZImHa4VfxqJEgBAAAAAA==@mailnetwork.co.uk>
References: <1149667889.7834.31.camel@jarek.macro.local>
	<!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAAC4AAAAAAAAAt+qV6pqKPEmXG74TlFgX5gEAlpDSN+DrMEWnumhoRHpQKQAAAbLc9wAAEAAAABNWfFYLLSZImHa4VfxqJEgBAAAAAA==@mailnetwork.co.uk>

On Wed, Jun 07, 2006 at 09:25:18AM +0100, Andy Shellam wrote:
> You would need to write your own installation script that would:
> a) create the temporary data directory
> b) install Postgres with all default options
> c) modify the pg_hba.conf file to allow localhost trust access (ie. No
> password) - and restart Postgres
> d) load the dump of your database into Postgres
> e) start your demo and wait for it to exit
> f) when demo has exited, stop and uninstall Postgres
> g) remove data directory
> 
> It depends how the MSI installer for Postgres will handle the "silent
> install" option, but you could use NSIS to do most if not all of this
> (http://nsis.sourceforge.net.)

And what happens if the user running this is an admin on the box?
PostgreSQL will refuse to start. Though, there is a patch floating
around that changes that, should you wish to build your own version...
-- 
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461



view thread (7+ messages)

Message-ID: <20060607223925.GD45331@pervasive.com>
Permalink:  ../20060607223925.GD45331@pervasive.com/
Also on:    postgresql.org/message-id/20060607223925.GD45331@pervasive.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jnasby@pervasive.com, andy.shellam@mailnetwork.co.uk, jarek@poczta.srv.pl
  Subject: Re: Standalone Postgres
  In-Reply-To: <20060607223925.GD45331@pervasive.com>
  References: <1149667889.7834.31.camel@jarek.macro.local> <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAAC4AAAAAAAAAt+qV6pqKPEmXG74TlFgX5gEAlpDSN+DrMEWnumhoRHpQKQAAAbLc9wAAEAAAABNWfFYLLSZImHa4VfxqJEgBAAAAAA==@mailnetwork.co.uk> <20060607223925.GD45331@pervasive.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox