From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | "news(dot)postgresql(dot)org" <brett_elliott(at)att(dot)net> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Sizing and striping log area |
Date: | 2002-10-14 23:02:19 |
Message-ID: | 200210142302.g9EN2JI04375@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
news.postgresql.org wrote:
> Are they archived like Oracle logs? Oracle writes to a log area and reads
> from the log area to generate archives. The archives are then used for
> recovery in case of corruption. This is important because reading from the
> drive throws off the head used for writing so seeking could be involved
> given this situation where reading and writing happen on the same drive
> concurrently. Oracle minimizes this by filling up, say, 500k of a certain
> disk before writing the logs to the next disk. Then it reads the 500k of
> logs and moves those to the archive. But if postgres doesn't use archives
> then this isn't an issue.
>
> Which leads me to another question... Does Postgres use archive logs and how
> does Postgres recover if it doesn't use archive logs? Or does it not
> recover as well as Oracle?
We sync() the info to disk and then recycle the logs. 7.4 will have
archive of logs, and hance point-in-time recovery.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | pginfo | 2002-10-15 07:06:24 | query optimization |
Previous Message | Gyorgy Molnar | 2002-10-14 21:57:11 | Re: string concatenation |