pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feeddisable wal
7+ messages / 4 participants
[nested] [flat]
* disable wal
@ 2001-04-29 16:36 Anuradha Ratnaweera <anuradha@gnu.org>
0 siblings, 1 reply; 7+ messages in thread
From: Anuradha Ratnaweera @ 2001-04-29 16:36 UTC (permalink / raw)
To: pgsql-admin
Is there a way to disable write ahead logging (WAL) in 7.1?
Thanks in advance.
Anuradha
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: disable wal
@ 2001-04-30 06:42 Oliver Vecernik <vecernik@aon.at>
parent: Anuradha Ratnaweera <anuradha@gnu.org>
0 siblings, 1 reply; 7+ messages in thread
From: Oliver Vecernik @ 2001-04-30 06:42 UTC (permalink / raw)
To: Anuradha Ratnaweera <anuradha@gnu.org>; +Cc: pgsql-admin
Anuradha Ratnaweera wrote:
>
> Is there a way to disable write ahead logging (WAL) in 7.1?
Why do you want to do this?
Oliver
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: disable wal
@ 2001-04-30 07:13 Anuradha Ratnaweera <anuradha@gnu.org>
parent: Oliver Vecernik <vecernik@aon.at>
0 siblings, 2 replies; 7+ messages in thread
From: Anuradha Ratnaweera @ 2001-04-30 07:13 UTC (permalink / raw)
To: Oliver Vecernik <vecernik@aon.at>; +Cc: pgsql-admin
On Mon, 30 Apr 2001, Oliver Vecernik wrote:
> Anuradha Ratnaweera wrote:
> >
> > Is there a way to disable write ahead logging (WAL) in 7.1?
>
> Why do you want to do this?
>
Because I have a copy of my real server on a laptop and I do all the
development on it. I use pg_dumpall, diff and shell scripts to synchronize
the two databases, source code and mails.
Obviously, I don't want the data on the laptop to be reliable because even
if everything corrupts there, a fresh installation and a single run of the
sync scripts will take things back to normal. These scripts will _not_
corrupt the real server even if the data on the laptop is corrupt because
data is taken only _from_ the server and not the other way round.
WAL files seem to be a bottleneck for the laptop performance (not on the
real server). So I want to disable it on the laptop.
Regards,
Anuradha
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Re: disable wal
@ 2001-04-30 14:25 Tom Lane <tgl@sss.pgh.pa.us>
parent: Anuradha Ratnaweera <anuradha@gnu.org>
1 sibling, 1 reply; 7+ messages in thread
From: Tom Lane @ 2001-04-30 14:25 UTC (permalink / raw)
To: Anuradha Ratnaweera <anuradha@gnu.org>; +Cc: Oliver Vecernik <vecernik@aon.at>; pgsql-admin
There is no way to "disable WAL". However, you might try running with
fsync turned off if you don't care about data integrity.
regards, tom lane
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: disable wal
@ 2001-04-30 17:18 Oliver Vecernik <vecernik@aon.at>
parent: Anuradha Ratnaweera <anuradha@gnu.org>
1 sibling, 0 replies; 7+ messages in thread
From: Oliver Vecernik @ 2001-04-30 17:18 UTC (permalink / raw)
To: Anuradha Ratnaweera <anuradha@gnu.org>; +Cc: pgsql-admin
Anuradha Ratnaweera wrote:
>
> On Mon, 30 Apr 2001, Oliver Vecernik wrote:
>
> > Anuradha Ratnaweera wrote:
> > >
> > > Is there a way to disable write ahead logging (WAL) in 7.1?
> >
> > Why do you want to do this?
> >
>
> Because I have a copy of my real server on a laptop and I do all the
> development on it. I use pg_dumpall, diff and shell scripts to synchronize
> the two databases, source code and mails.
>
> Obviously, I don't want the data on the laptop to be reliable because even
> if everything corrupts there, a fresh installation and a single run of the
> sync scripts will take things back to normal. These scripts will _not_
> corrupt the real server even if the data on the laptop is corrupt because
> data is taken only _from_ the server and not the other way round.
>
> WAL files seem to be a bottleneck for the laptop performance (not on the
> real server). So I want to disable it on the laptop.
If you don't need the other new features of 7.1 (outer joins, ...) you
can stick to 7.0.3.
Regards,
Oliver
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Re: disable wal
@ 2001-05-01 19:24 Anuradha Ratnaweera <anuradha@gnu.org>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 7+ messages in thread
From: Anuradha Ratnaweera @ 2001-05-01 19:24 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Oliver Vecernik <vecernik@aon.at>; pgsql-admin
I understand that that WAL is an integral part of 7.1 and "disabling" is
not possible. I also don't want to switch back to 7.0 becuse I _DO_ need
the new features.
If I don't care for reliability (for reasons I outlined earlier in this
thread), are there other parameters I can set to optimize for speed, such
as wal_sync_method? I already have turned off fsync and log_connections. I
can't turn on silent mode, because this machine is used for all testing
purposes and messages are useful.
Also, it is possible to avoid postgresql from trying to force the OS to
write data to the disk, so that WAL writes will be in disk cache for some
time?
Anuradha
On Mon, 30 Apr 2001, Tom Lane wrote:
> There is no way to "disable WAL". However, you might try running with
> fsync turned off if you don't care about data integrity.
>
> regards, tom lane
>
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: Re: Re: disable wal
@ 2001-05-02 20:07 Bruce Momjian <pgman@candle.pha.pa.us>
parent: Anuradha Ratnaweera <anuradha@gnu.org>
0 siblings, 0 replies; 7+ messages in thread
From: Bruce Momjian @ 2001-05-02 20:07 UTC (permalink / raw)
To: Anuradha Ratnaweera <anuradha@gnu.org>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; Oliver Vecernik <vecernik@aon.at>; pgsql-admin
>
> I understand that that WAL is an integral part of 7.1 and "disabling" is
> not possible. I also don't want to switch back to 7.0 becuse I _DO_ need
> the new features.
>
> If I don't care for reliability (for reasons I outlined earlier in this
> thread), are there other parameters I can set to optimize for speed, such
> as wal_sync_method? I already have turned off fsync and log_connections. I
> can't turn on silent mode, because this machine is used for all testing
> purposes and messages are useful.
>
> Also, it is possible to avoid postgresql from trying to force the OS to
> write data to the disk, so that WAL writes will be in disk cache for some
> time?
Yes, as Tom said, you can use postgres -F flag to disable fsync writes,
even with WAL in 7.1.
>
> Anuradha
>
> On Mon, 30 Apr 2001, Tom Lane wrote:
>
> > There is no way to "disable WAL". However, you might try running with
> > fsync turned off if you don't care about data integrity.
> >
> > regards, tom lane
> >
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2001-05-02 20:07 UTC | newest]
Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-04-29 16:36 disable wal Anuradha Ratnaweera <anuradha@gnu.org>
2001-04-30 06:42 ` Oliver Vecernik <vecernik@aon.at>
2001-04-30 07:13 ` Anuradha Ratnaweera <anuradha@gnu.org>
2001-04-30 14:25 ` Tom Lane <tgl@sss.pgh.pa.us>
2001-05-01 19:24 ` Anuradha Ratnaweera <anuradha@gnu.org>
2001-05-02 20:07 ` Bruce Momjian <pgman@candle.pha.pa.us>
2001-04-30 17:18 ` Oliver Vecernik <vecernik@aon.at>
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