From: Hovik Avedian <havedian@ebasetech.com>
To: pgsql-admin@postgresql.org
Subject: Starting PostgreSQL from a windows application
Date: Wed, 26 Jul 2006 18:26:28 +0100
Message-ID: <b5b8c2bc56c4420bbe13ce228339c190@ebasetech.com> (raw)
Hello,
I have installed Postures on a Windows server and it starts as a service and all is OK.
I have 2 questions:
1. I need to be able to wrap PostgreSQL as part of my application and, therefore, start it as part of my app. start-up. I know that pg_ctl start is the command, but as your documentation clearly states, PostgreSQL can only be started by a non-privileged user. Here lies my problem.
Most software needs a privileged user to start it. So how can I start PostgreSQL as a different user from the one which needs to be logged in to start the other software?
2. How do I give my users a totally new database. Is backup/restore the only mechanism?
Can I copy (parts of) the data directory, from one installation of PostgreSQL to another?
Thanks in advance for your support,
Hovik Avedian
Senior Consultant
Ebase Technology Ltd.
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: havedian@ebasetech.com
Subject: Re: Starting PostgreSQL from a windows application
In-Reply-To: <b5b8c2bc56c4420bbe13ce228339c190@ebasetech.com>
References: <b5b8c2bc56c4420bbe13ce228339c190@ebasetech.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