From: | "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com> |
---|---|
To: | mailtolouis2020-postgres(at)yahoo(dot)com |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Postgres file structure doubt |
Date: | 2007-11-19 17:38:12 |
Message-ID: | dcc563d10711190938p24f4b517je259283c4e6990c7@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Nov 19, 2007 11:24 AM, <mailtolouis2020-postgres(at)yahoo(dot)com> wrote:
>
> 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?
The data that defines users, and tables, and other objects are in
PGDATA. The data from users are stored in mydata/myindex. Not sure
if that matches what you wrote or not...
> 2) So to backup (not pg_dump), I should make sure it include these 2 folder
> right?
>
> /usr/local/pgsql/data
> /database/pg/
To backup, you should generally use pg_dump. Are you planning on
using PITR? Are you planning on shutting down your database when you
back it up? if you're not using PITR, you must shut down postgresql
to take a file system backup.
> 3) I think my setup is not quite right, I should move the PGDATA to
> /database/pg right?
Sorta a personaly choice really.
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2007-11-19 17:47:21 | Re: Postgre and XML |
Previous Message | mailtolouis2020-postgres | 2007-11-19 17:24:31 | Postgres file structure doubt |