Re: Moving a table to another directory

Поиск
Список
Период
Сортировка
От Ezequiel Luis Pellettieri
Тема Re: Moving a table to another directory
Дата
Msg-id 86aad3420702051928n16fca3dm42843a02c610f678@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Moving a table to another directory  ("Jaime Casanova" <systemguards@gmail.com>)
Ответы Re: Moving a table to another directory  ("Jaime Casanova" <systemguards@gmail.com>)
Список pgsql-admin
Jaime you mean that moving all table files and pointing the symlink to the first one will work?
and doing the same with its index too...?

thanks for your help!

pelle.-


2007/2/6, Jaime Casanova <systemguards@gmail.com>:
> 2007/2/5, Milen A. Radev <milen@radev.net>:
> > Ezequiel Luis Pellettieri написа:
> > > Hi guys I have a big table (25 gb) and a need to move it to another
> > > directory cos i'm out of space.
> > > making a symlik will be ok? or I have to do something else
> > >
> >
> >
> > 1. CREATE TABLESPACE xxx LOCATION 'another_dir'
> > (
> http://www.postgresql.org/docs/current/static/sql-createtablespace.html);
> >
> > 2. ALTER TABLE big_table SET TABLESPACE xxx;
> >
> (http://www.postgresql.org/docs/current/static/sql-altertable.html
> )
> >
On 2/5/07, Ezequiel Luis Pellettieri < ezequiel.pellettieri@gmail.com> wrote:
> Thanks Milen, does it work on 7.4??
>

oops... your symlink will be ok... use the contrib oid2name to
identify the files corresponding to that table... and maybe the
indexes as well...

what i remember from the ancient era pre-tablespace (2 or 3 years ago)
is that a pg_dump and/or reindex will return all to it's original
state...

--
regards,
Jaime Casanova

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots.
So far, the universe is winning."
                                       Richard Cook



--
Saludos cordiales. Ezequiel L. Pellettieri

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Jaime Casanova"
Дата:
Сообщение: Re: Moving a table to another directory
Следующее
От: "Jaime Casanova"
Дата:
Сообщение: Re: Moving a table to another directory