From: Rudi Starcevic <rudi@oasis.net.au>
To: pgsql-admin@postgresql.org
Subject: Re: limit the database size
Date: Fri, 10 Oct 2003 17:13:43 +1000
Message-ID: <3F865C27.5000803@oasis.net.au> (raw)
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>
Hi,
If you compile/re-compile all databases are accesssible from one port.
The system table pg_database stores the path to the 'base' dir which can
be in the user's dir.
Also in the pg_database table you can update the datdba field to change
the owner of the database.
An example where this is very cool is if the user logs into their
database via a web interface like
phpPgAdmin they can log into just their database and not anyone else's.
Pretty much ideal for a hosting situation.
Does anyone have the C compile flags handy ?
Cheers
Best regards
Rudi.
Oliver Elphick wrote:
>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
>
>
>
>
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: rudi@oasis.net.au
Subject: Re: limit the database size
In-Reply-To: <3F865C27.5000803@oasis.net.au>
References: <008401c38ebc$ffc1c270$da17040a@lothar> <3F85F395.1020408@oasis.net.au> <3F864E09.6040500@tigrasoft.hu> <1065767570.2418.64.camel@linda.lfix.co.uk> <3F865C27.5000803@oasis.net.au>
* 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