pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Antonin Houska <ah@cybertec.at>
To: Oleg Ivanov <o.ivanov@postgrespro.ru>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] Proposal: generic WAL compression
Date: Mon, 20 Nov 2017 08:49:48 +0100
Message-ID: <8015.1511164188@localhost> (raw)
In-Reply-To: <23990.1510853483@localhost>
References: <59F90ABF.2060407@postgrespro.ru>
	<23990.1510853483@localhost>

Antonin Houska <ah@cybertec.at> wrote:

> Oleg Ivanov <o.ivanov@postgrespro.ru> wrote:
> 
> > In order to overcome that issue, I would like to propose the patch, which
> > provides possibility to use another approach of the WAL record
> > construction.
> 
> After having spent several hours reviewing this patch I dare to send the
> following comments:

One more idea:

I think the metadata (ALIGN_GAP) should be stored separate from the actual
data so that you can use memcpy() instead of this loop:

    while (i < j)
    {
	    char		c = targetRegionAligned[i++];

	    writeToPtr(ptr, c);
    }


-- 
Antonin Houska
Cybertec Schönig & Schönig GmbH
Gröhrmühlgasse 26
A-2700 Wiener Neustadt
Web: http://www.postgresql-support.de, http://www.cybertec.at




view thread (12+ messages)  latest in thread

Message-ID: <8015.1511164188@localhost>
Permalink:  ../8015.1511164188@localhost/
Also on:    postgresql.org/message-id/8015.1511164188@localhost

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: ah@cybertec.at, o.ivanov@postgrespro.ru
  Subject: Re: [HACKERS] Proposal: generic WAL compression
  In-Reply-To: <8015.1511164188@localhost>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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