Postgres file structure doubt

Поиск
Список
Период
Сортировка
От mailtolouis2020-postgres@yahoo.com
Тема Postgres file structure doubt
Дата
Msg-id 543669.61048.qm@web30412.mail.mud.yahoo.com
обсуждение исходный текст
Ответы Re: Postgres file structure doubt
Список pgsql-general
Hi everyone,
 
Got a doubt in my setup, please correct me if I'm wrong.
 
In my postgres setup,
/usr/local/pgsql (where postgres install)
/usr/local/pgsql/data (PGDATA)
/database/pg/mydata (tablespace which use for all the table I create)
/database/pg/myindex (index which use for all the table I create)
 
1) In this setup, the actual user data are store in PGDATA
the table structure & index are store in /database/pg/mydata & /database/pg/myindex
 
Am I correct?
 
2) So to backup (not pg_dump), I should make sure it include these 2 folder right?
/usr/local/pgsql/data
/database/pg/
 
 
3) I think my setup is not quite right, I should move the PGDATA to /database/pg right?
 
 
Regards
Louis

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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: [ADMIN] Error while starting postgreSQL service
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: Postgres file structure doubt