| From: | Oliver Elphick <olly(at)lfix(dot)co(dot)uk> |
|---|---|
| To: | Laszlo Hornyak <kocka(at)tigrasoft(dot)hu> |
| Cc: | pgsql-admin(at)postgresql(dot)org |
| Subject: | Re: limit the database size |
| Date: | 2003-10-10 06:32:50 |
| Message-ID: | 1065767570.2418.64.camel@linda.lfix.co.uk |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
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(dot)Elphick(at)lfix(dot)co(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Rudi Starcevic | 2003-10-10 07:13:43 | Re: limit the database size |
| Previous Message | Laszlo Hornyak | 2003-10-10 06:13:29 | Re: limit the database size |