X-Original-To: pgsql-admin@postgresql.org Received: from localhost (unknown [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id 5BA6A9232FB for ; Tue, 20 May 2003 05:41:03 -0400 (EDT) Received: from developer.postgresql.org ([64.117.224.193]) by localhost (developer.postgresql.org [64.117.224.193:10024]) (amavisd-new) with ESMTP id 47219-08 for ; Tue, 20 May 2003 05:41:00 -0400 (EDT) Received: from ecbull20.frec.bull.fr (ecbull20.frec.bull.fr [129.183.4.3]) by developer.postgresql.org (Postfix) with ESMTP id 2DE9D923548 for ; Tue, 20 May 2003 05:40:20 -0400 (EDT) Received: from ecn002.frec.bull.fr (ecn002.frec.bull.fr [129.183.4.6]) by ecbull20.frec.bull.fr (8.9.2/8.9.1) with ESMTP id IAA02772; Tue, 20 May 2003 08:50:03 +0200 Received: from BULL.NET ([129.183.148.134]) by ecn002.frec.bull.fr (Lotus Domino Release 5.0.12) with ESMTP id 2003052008492210:2318 ; Tue, 20 May 2003 08:49:22 +0200 Message-ID: <3EC9D01A.945CB4D2@BULL.NET> Date: Tue, 20 May 2003 08:50:02 +0200 From: Thierry Missimilly Organization: BSIS/R&D X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) X-Accept-Language: fr,en MIME-Version: 1.0 To: Victor Yegorov Cc: Postgres Admin Subject: Re: data files management (tablespaces) References: <20030518064748.GA3241@nordlb.lv> X-MIMETrack: Itemize by SMTP Server on ECN002/FR/BULL(Release 5.0.12 |February 13, 2003) at 20/05/2003 08:49:22, Serialize by Router on ECN002/FR/BULL(Release 5.0.12 |February 13, 2003) at 20/05/2003 08:50:44, Serialize complete at 20/05/2003 08:50:44 Content-Type: multipart/mixed; boundary="------------64AD6DF38224BA7291CDA74F" X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/262 X-Sequence-Number: 8824 This is a multi-part message in MIME format. --------------64AD6DF38224BA7291CDA74F Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit One solution i used is : 1) Run the contrib tools oid2name and note which DB or table i want to move in an other disk / FS. 2) pg_ctl stop 3)cd $PGDATA/base 4) mv 5) ln -s / 6) pg_ctl start Victor Yegorov wrote: > Hello. > > I wonder, is it possible in PostgreSQL to manage data files, stored on > disks? I mean, I'd like to tell DB where store this or that object. > > Now I have a server running a DB and a small application that uses > it. At the time, when project started, there were enough space on HD > (4Gb). Now it seems, that soon I'm going to have problems. > > At now, I'm daily backuping and then deleting all "expired" records. But > that is not the solution I want. > > Is it possible to add one (or more) disks and tell Postgres to store, say, > indicies or big tables on them? Such things in ORACLE are called > tablespaces. > > I've searched the docs, but found nothing apropriate, may be I've missed the > point. > > I know, I can just upgrade hardware and move my stuff to the new server. But > still - is it possible to manage objects? > > Thanks. > > -- > > Victor Yegorov > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster --------------64AD6DF38224BA7291CDA74F Content-Type: text/x-vcard; charset=us-ascii; name="THIERRY.MISSIMILLY.vcf" Content-Description: Card for Thierry Missimilly Content-Disposition: attachment; filename="THIERRY.MISSIMILLY.vcf" Content-Transfer-Encoding: 7bit begin:vcard n:Missimilly;Thierry tel;fax:+33 (0)4 76 29 78 78 tel;work:+33 (0)4 76 29 74 54 x-mozilla-html:FALSE url:http:\\www.bull.com org:BIS/R&D adr:;;Bull SA, 1, rue de provence - BP 208;ECHIROLLES;;38432;FRANCE version:2.1 email;internet:Thierry.Missimilly@bull.net x-mozilla-cpt:;-18184 fn:Thierry Missimilly end:vcard --------------64AD6DF38224BA7291CDA74F--