From: Thierry Missimilly <THIERRY.MISSIMILLY@bull.net>
To: Victor Yegorov <viktors.jegorovs@nordlb.lv>
Cc: Postgres Admin <pgsql-admin@postgresql.org>
Subject: Re: data files management (tablespaces)
Date: Tue, 20 May 2003 08:50:02 +0200
Message-ID: <3EC9D01A.945CB4D2@BULL.NET> (raw)
References: <20030518064748.GA3241@nordlb.lv>
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 <DBnumber> <my_new_filesystem>
5) ln -s <my_new_filesystem>/<DBnumber> <DBnumber>
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
Attachments:THIERRY.MISSIMILLY.vcf (text/x-vcard, 326B) download
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
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: THIERRY.MISSIMILLY@bull.net, viktors.jegorovs@nordlb.lv
Subject: Re: data files management (tablespaces)
In-Reply-To: <3EC9D01A.945CB4D2@BULL.NET>
References: <20030518064748.GA3241@nordlb.lv> <3EC9D01A.945CB4D2@BULL.NET>
* 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