Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T3YwL-0002YV-J0 for pgsql-performance@postgresql.org; Mon, 20 Aug 2012 20:51:13 +0000 Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T3YwJ-0002XP-BP for pgsql-performance@postgresql.org; Mon, 20 Aug 2012 20:51:12 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1T3YwH-0004G5-AL for pgsql-performance@postgresql.org; Mon, 20 Aug 2012 13:51:09 -0700 Date: Mon, 20 Aug 2012 13:51:09 -0700 (PDT) From: delongboy To: pgsql-performance@postgresql.org Message-ID: <1345495869310-5720492.post@n5.nabble.com> In-Reply-To: References: <385621813.89890122.1344620116156.JavaMail.root@email> <5029A543.4090503@agliodbs.com> <1345134711660-5720136.post@n5.nabble.com> <801082735.54549.1345215661255.JavaMail.root@agliodbs.com> <1345226019192-5720250.post@n5.nabble.com> Subject: Re: Increasing WAL usage followed by sudden drop MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.1 (/) X-Archive-Number: 201208/127 X-Sequence-Number: 47665 Jeff Janes wrote > > Maybe there is an easier way, but one thing would be to compile a test > server (of the same version as the production) with WAL_DEBUG defined > in src/include/pg_config_manual.h, turn on the wal_debug guc, and > crank up trace_recovery_messages. Then replay the WAL log files from > production through this test server and see what it logs. That > requires that you have > > Easier would to be turn on wal_debug and watch the server log as the > WAL logs are generated, instead of recovered, but you probably don't > want to do that on production. So you would need a workload generator > that also exhibits the phenomenon of interest. > This sounds like it may help me see what is going on. However I am not finding very much documentation as to how to do this exactly. What I have is it seems this has to be set and postgres needs to be re-compiled to enable it. Is this true? As that would not really be a viable option right now. I am in position to set up a test server and run wal files through it. But I am not sure how to accomplish this exactly? Is there somewhere you anyone could point me to find documentation on how to do this? Thanks a lot for everyone's input so far. -- View this message in context: http://postgresql.1045698.n5.nabble.com/Increasing-WAL-usage-followed-by-sudden-drop-tp5719567p5720492.html Sent from the PostgreSQL - performance mailing list archive at Nabble.com.