Re: [HACKERS] Proposal: generic WAL compression
| От | Antonin Houska |
|---|---|
| Тема | Re: [HACKERS] Proposal: generic WAL compression |
| Дата | |
| Msg-id | 8015.1511164188@localhost обсуждение исходный текст |
| Ответ на | Re: [HACKERS] Proposal: generic WAL compression (Antonin Houska <ah@cybertec.at>) |
| Ответы |
Re: [HACKERS] Proposal: generic WAL compression
|
| Список | pgsql-hackers |
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
В списке pgsql-hackers по дате отправления: