Re: Schema, databse, or tables in different system folder

Поиск
Список
Период
Сортировка
От A. Kretschmer
Тема Re: Schema, databse, or tables in different system folder
Дата
Msg-id 20090602142140.GB17460@a-kretschmer.de
обсуждение исходный текст
Ответ на Schema, databse, or tables in different system folder  ("Carlos Oliva" <carlos@pbsinet.com>)
Список pgsql-general
In response to Carlos Oliva :
> Is there a way to create a database or a table of a database in its own

Database or table?


> folder?  We are looking for ways to backup the sytem files of the database
> to tape and one to exclude some tables from this backup.  We can selectively
> backup folders of the file system so we figure that if we can create a
> schema or database or table in its own folder, we can backup our database
> and exclude the tables selectively.  We are using Linux RedHat.  Thank you.

You can use tablespaces, see:

16:16 < akretschmer> ??tablespace
16:16 < rtfm_please> For information about tablespace
16:16 < rtfm_please> see
http://people.planetpostgresql.org/xzilla/index.php?/archives/322-tablespace-management-variables.html
16:16 < rtfm_please> or http://www.postgresql.org/docs/current/static/manage-ag-tablespaces.html

But read also the docu about backup/restore.

A simple file-system-copy on a running DB don't work as backup.


Regards, Andreas
--
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net

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

Предыдущее
От: Grzegorz Jaśkiewicz
Дата:
Сообщение: Re: Schema, databse, or tables in different system folder
Следующее
От: Grzegorz Jaśkiewicz
Дата:
Сообщение: Re: is generate_series_timestamp() exposed on public api ?