Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id D666D9FB2F1 for ; Tue, 22 May 2007 02:50:08 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 33382-05 for ; Tue, 22 May 2007 02:49:58 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by postgresql.org (Postfix) with ESMTP id 836859FB831 for ; Tue, 22 May 2007 02:20:16 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id k3so115049ugf for ; Mon, 21 May 2007 22:20:15 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lozR0WMj5b6Pv0wnUd0lEZ6DAVTHJWvsV2oDGkdXKj2c9U6ifVh7r3/r6b6D3LeT4+f1HBKPO5F6LLPNLAWW4uukK9l5tGZsREKmXfWiSo9Yb6nmKPGKukRclMJoJr3u88Bb7PjGr9amLjp6fTsgyDLTW1jH1dB5RBeYY4Tnzoc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gyWuMxiXFlNKReSPlD6UnSMgS36JS6ovNHtv3w5uQdiion/1w4J7CFkBEuJgXqhM6jb/rZv+WSk6oZek8kQCNo+z8uq5FIq6ir3Rovv75u7837GXCqp4akPMOr3+Bsq+NS0+1txftiOXY+13/qDzAtbJQr3BMASnfXprFp+d/AY= Received: by 10.67.117.18 with SMTP id u18mr334770ugm.1179811215117; Mon, 21 May 2007 22:20:15 -0700 (PDT) Received: by 10.66.233.18 with HTTP; Mon, 21 May 2007 22:20:14 -0700 (PDT) Message-ID: Date: Tue, 22 May 2007 14:20:15 +0900 From: "Koichi Suzuki" To: "Tom Lane" Subject: Re: [PATCHES] Full page writes improvement, code update Cc: "Koichi Suzuki" , "Josh Berkus" , "Zeugswetter Andreas ADI SD" , pgsql-hackers@postgresql.org, pgsql-patches@postgresql.org In-Reply-To: <17092.1179695770@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <460886E8.6040907@oss.ntt.co.jp> <200704240831.42873.josh@agliodbs.com> <200704251127.13624.josh@agliodbs.com> <6292.1177538104@sss.pgh.pa.us> <463F1F32.5070707@oss.ntt.co.jp> <17092.1179695770@sss.pgh.pa.us> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/929 X-Sequence-Number: 103531 I really appreciate for the modification. I also believe XLOG_NOOP is cool to maintains XLOG format consistent. I'll continue to write a code to produce incremental log record from the full page writes as well as too maintain CRC, XLOOG_NOOP and other XLOG locations, I also found that you've added information on btree strip log records, which anables to produce corresponding incremental logs from the full page writes. 2007/5/21, Tom Lane : > Koichi Suzuki writes: > > As replied to "Patch queue triage" by Tom, here's simplified patch to > > mark WAL record as "compressable", with no increase in WAL itself. > > Compression/decompression commands will be posted separately to PG > > Foundary for further review. > > Applied with some minor modifications. I didn't like the idea of > suppressing the sanity-check on WAL record length; I think that's > fairly important. Instead, I added a provision for an XLOG_NOOP > WAL record type that can be used to fill in the extra space. > The way I envision that working is that the compressor removes > backup blocks and converts each compressible WAL record to have the > same contents and length it would've had if written without backup > blocks. Then, it inserts an XLOG_NOOP record with length set to > indicate the amount of extra space that needs to be chewed up -- > but in the compressed version of the WAL file, XLOG_NOOP's "data > area" is not actually stored. The decompressor need only scan > the file looking for XLOG_NOOP and insert the requisite number of > zero bytes (and maybe recompute the XLOG_NOOP's CRC, depending on > whether you want it to be valid for the short-format record in the > compressed file). There will also be some games to be played for > WAL page boundaries, but you had to do that anyway. > > regards, tom lane > > ---------------------------(end of broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq > -- ------ Koichi Suzuki