Received: from mail.memeticsystems.com (flywheel.memeticsystems.com [64.85.80.85]) by postgresql.org (8.11.3/8.11.4) with SMTP id g0PJj0l55653 for ; Fri, 25 Jan 2002 14:45:01 -0500 (EST) (envelope-from peter@memeticsystems.com) Received: (qmail 4268 invoked from network); 25 Jan 2002 19:44:50 -0000 Received: from unknown (HELO PETER) (63.249.24.21) by flywheel.memeticsystems.com with SMTP; 25 Jan 2002 19:44:50 -0000 From: "Peter T. Brown" To: "'Tom Lane'" , "'Radu-Adrian Popescu'" Cc: "'Postgres Admin List'" Subject: Re: Maximum Performance Follow-up Question Date: Fri, 25 Jan 2002 11:44:50 -0800 Message-ID: <002101c1a5d8$c09b5990$7d00000a@PETER> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <25432.1011972211@sss.pgh.pa.us> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Archive-Number: 200201/193 X-Sequence-Number: 3078 Actually, a great many of the queries we run are Very dependant on inserts -- we do inserts into a big 'pointers' table and use that as a basis for other queries. Its also the case that for our web tracking application nearly every select is paried with an insert (lookup a visitor, add a row recording their hit to the website). So I think that gaining efficiency on inserts would really help... Is there any BIG risk in turning fsync off? I mean, if I miss the last 30 minutes of tracking data from our website because of a system crash, thats no big deal to me. If the entire database gets corrupted and must be scrubbed, that's a big deal. And isn't there some way to use fsync but just use it less frequently, so that postgres writes a bunch of changes to disk when it less busy or something? Thanks -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us] Sent: Friday, January 25, 2002 7:24 AM To: Radu-Adrian Popescu Cc: Peter T. Brown; Postgres Admin List Subject: Re: [ADMIN] Maximum Performance Follow-up Question Radu-Adrian Popescu writes: > I belive you should set > fsync=false > in case you mainly select and do inserts rather rare. No, that's a really horrid reason to turn off fsync. A read-only transaction never syncs and thus has no fsync penalty. If update performance isn't a serious problem for you, you may as well keep fsync on and not have to worry about data loss in the case of a system crash. regards, tom lane