pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
turning of pg_xlog
6+ messages / 5 participants
[nested] [flat]

* turning of pg_xlog
@ 2008-09-29 11:00  Jonny <blubb@terminalschmiede.de>
  0 siblings, 2 replies; 6+ messages in thread

From: Jonny @ 2008-09-29 11:00 UTC (permalink / raw)
  To: pgsql-admin

Hi,

I have installes Postgres 8.0.15 on a embedded Linux and have only 130 
MB for Postgres.
Is it possible to turn off the comlete (Wal) pg_xlog? Because this is 
the biggest part.
I found an Entry how to minimize the count of stored xlogs.
Is it possible to store it  to /dev/null or something else?
Something like ln -s /dev/null  pg_xlog/ (I know this does not work :-) ....


regards, Jonny



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: turning of pg_xlog
@ 2008-09-29 17:02  Andrew Sullivan <ajs@commandprompt.com>
  parent: Jonny <blubb@terminalschmiede.de>
  1 sibling, 0 replies; 6+ messages in thread

From: Andrew Sullivan @ 2008-09-29 17:02 UTC (permalink / raw)
  To: pgsql-admin

On Mon, Sep 29, 2008 at 01:00:41PM +0200, Jonny wrote:
> Is it possible to turn off the comlete (Wal) pg_xlog? 

No.

A

-- 
Andrew Sullivan
ajs@commandprompt.com
+1 503 667 4564 x104
http://www.commandprompt.com/



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: turning of pg_xlog
@ 2008-09-30 18:13  Chander Ganesan <chander@otg-nc.com>
  parent: Jonny <blubb@terminalschmiede.de>
  1 sibling, 1 reply; 6+ messages in thread

From: Chander Ganesan @ 2008-09-30 18:13 UTC (permalink / raw)
  To: Jonny <blubb@terminalschmiede.de>; +Cc: pgsql-admin

Jonny wrote:
> Hi,
>
> I have installes Postgres 8.0.15 on a embedded Linux and have only 130 
> MB for Postgres.
> Is it possible to turn off the comlete (Wal) pg_xlog? Because this is 
> the biggest part.
> I found an Entry how to minimize the count of stored xlogs.
> Is it possible to store it  to /dev/null or something else?
> Something like ln -s /dev/null  pg_xlog/ (I know this does not work 
> :-) ....
You should also understand that if you set checkpoint_segments to a 
small number, its still possible that PostgreSQL might use more than 
that number for a large transaction.  As such, be careful about limiting 
the space available to your xlogs, lest it cause transactions to fail 
due to insufficient space for the xlogs.

-- 
Chander Ganesan
Open Technology Group, Inc.
One Copley Parkway, Suite 210
Morrisville, NC  27560
919-463-0999/877-258-8987
http://www.otg-nc.com




^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: turning of pg_xlog
@ 2008-09-30 18:44  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Chander Ganesan <chander@otg-nc.com>
  0 siblings, 2 replies; 6+ messages in thread

From: Tom Lane @ 2008-09-30 18:44 UTC (permalink / raw)
  To: Chander Ganesan <chander@otg-nc.com>; +Cc: Jonny <blubb@terminalschmiede.de>; pgsql-admin

Chander Ganesan <chander@otg-nc.com> writes:
> You should also understand that if you set checkpoint_segments to a 
> small number, its still possible that PostgreSQL might use more than 
> that number for a large transaction.

"Large transactions" have nothing to do with this.  You are confusing
Postgres' implementation with Oracle's.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: turning of pg_xlog
@ 2008-09-30 18:49  Plugge, Joe R. <JRPlugge@west.com>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 0 replies; 6+ messages in thread

From: Plugge, Joe R. @ 2008-09-30 18:49 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; Chander Ganesan <chander@otg-nc.com>; +Cc: Jonny <blubb@terminalschmiede.de>; pgsql-admin

I might have to disagree here.  I personally experienced a scenario
where I had 500 MB of file space defined for my WAL log files and then
attempted (not thinking it through thoroughly) to perform a COPY of a
very large (1.8 GB) dataset and kept adding WAL files until my file
system filled up and then the instance crashed. 

-----Original Message-----
From: pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Tom Lane
Sent: Tuesday, September 30, 2008 1:45 PM
To: Chander Ganesan
Cc: Jonny; pgsql-admin@postgresql.org
Subject: Re: [ADMIN] turning of pg_xlog 

Chander Ganesan <chander@otg-nc.com> writes:
> You should also understand that if you set checkpoint_segments to a 
> small number, its still possible that PostgreSQL might use more than 
> that number for a large transaction.

"Large transactions" have nothing to do with this.  You are confusing
Postgres' implementation with Oracle's.

			regards, tom lane

-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: turning of pg_xlog
@ 2008-09-30 18:55  Chander Ganesan <chander@otg-nc.com>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 0 replies; 6+ messages in thread

From: Chander Ganesan @ 2008-09-30 18:55 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Jonny <blubb@terminalschmiede.de>; pgsql-admin

Tom Lane wrote:
> Chander Ganesan <chander@otg-nc.com> writes:
>   
>> You should also understand that if you set checkpoint_segments to a 
>> small number, its still possible that PostgreSQL might use more than 
>> that number for a large transaction.
>>     
>
> "Large transactions" have nothing to do with this.  You are confusing
> Postgres' implementation with Oracle's.
>
> 			regards, tom lane
Okay.  I guess my use of the word "transaction" here was erroneous - 
probably comes from my oracle background :-( .  However, the fact 
remains that its possible to exceed checkpoint_segments in certain 
scenarios (I think the docs refer to it as a peak in log creation or 
something like that), which - if it fills up the disk that the WALs are 
on, can result in issues...  And one should be wary of that when trying 
to limit the number of WALs in order to meet limited disk space 
requirements.

-- 
Chander Ganesan
Open Technology Group, Inc.
One Copley Parkway, Suite 210
Morrisville, NC  27560
919-463-0999/877-258-8987
http://www.otg-nc.com




^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2008-09-30 18:55 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-09-29 11:00 turning of pg_xlog Jonny <blubb@terminalschmiede.de>
2008-09-29 17:02 ` Andrew Sullivan <ajs@commandprompt.com>
2008-09-30 18:13 ` Chander Ganesan <chander@otg-nc.com>
2008-09-30 18:44   ` Tom Lane <tgl@sss.pgh.pa.us>
2008-09-30 18:49     ` Plugge, Joe R. <JRPlugge@west.com>
2008-09-30 18:55     ` Chander Ganesan <chander@otg-nc.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox