X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id D5540D1B4E1 for ; Fri, 10 Oct 2003 07:08:54 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 52357-01 for ; Fri, 10 Oct 2003 04:08:07 -0300 (ADT) Received: from water.oasis.net.au (water.oasis.net.au [210.8.139.2]) by svr1.postgresql.org (Postfix) with ESMTP id EB381D1B541 for ; Fri, 10 Oct 2003 04:08:03 -0300 (ADT) Received: from oasis.net.au (guardian [210.8.139.5]) by water.oasis.net.au (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id RAA11757 for ; Fri, 10 Oct 2003 17:36:09 +1000 X-Authentication-Warning: water.oasis.net.au: Host guardian [210.8.139.5] claimed to be oasis.net.au Message-ID: <3F865C27.5000803@oasis.net.au> Date: Fri, 10 Oct 2003 17:13:43 +1000 From: Rudi Starcevic User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: limit the database size References: <008401c38ebc$ffc1c270$da17040a@lothar> <3F85F395.1020408@oasis.net.au> <3F864E09.6040500@tigrasoft.hu> <1065767570.2418.64.camel@linda.lfix.co.uk> In-Reply-To: <1065767570.2418.64.camel@linda.lfix.co.uk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/110 X-Sequence-Number: 10671 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 > > > >