From: Oliver Elphick <olly@lfix.co.uk>
To: Laszlo Hornyak <kocka@tigrasoft.hu>
Cc: pgsql-admin@postgresql.org
Subject: Re: limit the database size
Date: Fri, 10 Oct 2003 07:32:50 +0100
Message-ID: <1065767570.2418.64.camel@linda.lfix.co.uk> (raw)
In-Reply-To: <3F864E09.6040500@tigrasoft.hu>
References: <008401c38ebc$ffc1c270$da17040a@lothar>
<3F85F395.1020408@oasis.net.au>
<3F864E09.6040500@tigrasoft.hu>
On Fri, 2003-10-10 at 07:13, Laszlo Hornyak wrote:
> Hi!
>
> I believe you don`t need to recompile, just
> export PGDATA=/home/me/pgdata
> pg_initdb
> pg_ctl start
> and ready to go.
If you do this, each separate instance needs a different port. That can
be set in $PGDATA/postgresql.conf.
When you connect to the server (with psql or another frontend) you
specify the correct port for the server you want.
psql -p 5433 -d mydatabase
or
export PGPORT=5433
psql -d mydatabase
--
Oliver Elphick Oliver.Elphick@lfix.co.uk
Isle of Wight, UK http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"He that covereth his sins shall not prosper; but whoso
confesseth and forsaketh them shall have mercy."
Proverbs 28:13
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: olly@lfix.co.uk, kocka@tigrasoft.hu
Subject: Re: limit the database size
In-Reply-To: <1065767570.2418.64.camel@linda.lfix.co.uk>
References: <008401c38ebc$ffc1c270$da17040a@lothar> <3F85F395.1020408@oasis.net.au> <3F864E09.6040500@tigrasoft.hu> <1065767570.2418.64.camel@linda.lfix.co.uk>
* 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