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 70F5CD1B549 for ; Fri, 10 Oct 2003 08:49: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 64884-01 for ; Fri, 10 Oct 2003 05:49:07 -0300 (ADT) Received: from ipslore.ujpressz (unknown [213.163.41.148]) by svr1.postgresql.org (Postfix) with ESMTP id 59019D1B545 for ; Fri, 10 Oct 2003 05:49:05 -0300 (ADT) Received: from [192.168.0.71] (helo=tigrasoft.hu) by ipslore.ujpressz with esmtp (Exim 3.35 #1 (Debian)) id 1A7WOa-0006En-00 for ; Thu, 09 Oct 2003 10:43:40 +0200 Message-ID: <3F86728C.6000504@tigrasoft.hu> Date: Fri, 10 Oct 2003 10:49:16 +0200 From: Laszlo Hornyak User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20030925 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> <3F865C27.5000803@oasis.net.au> In-Reply-To: <3F865C27.5000803@oasis.net.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/111 X-Sequence-Number: 10672 Correct me if I am wrong but limiting storage size under the DB is not always the right thing to do. Once my db ran out of space when vaacum-ing at night, and one of the indexes damaged, so, I could not do selects using that index, i had to drop it, add some storage, recreate, vacumanalyze, etc. Laszlo Hornyak Rudi Starcevic wrote: > 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 >> >> >> >> > > > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly