pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@2ndquadrant.com>
To: Fujii Masao <fujii@postgresql.org>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Add GUC to enable compression of full page images stored in WAL.
Date: Wed, 11 Mar 2015 15:18:19 +0100
Message-ID: <20150311141819.GI12445@alap3.anarazel.de> (raw)
In-Reply-To: <E1YVaX2-0003sF-71@gemulon.postgresql.org>
References: <E1YVaX2-0003sF-71@gemulon.postgresql.org>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Hi,

On 2015-03-11 06:54:16 +0000, Fujii Masao wrote:
> Add GUC to enable compression of full page images stored in WAL.

This triggers a couple warnings here (gcc 4.9 and 5):

/home/andres/src/postgresql/src/backend/access/transam/xloginsert.c: In function ‘XLogInsert’:
/home/andres/src/postgresql/src/backend/access/transam/xloginsert.c:670:5: warning: ‘cbimg.hole_length’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     memcpy(scratch, &cbimg,
     ^
/home/andres/src/postgresql/src/backend/access/transam/xloginsert.c:494:33: note: ‘cbimg.hole_length’ was declared here
   XLogRecordBlockCompressHeader cbimg;
                                 ^
/home/andres/src/postgresql/src/backend/access/transam/xloginsert.c:668:20: warning: ‘hole_length’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    if (hole_length != 0 && is_compressed)
                    ^
/home/andres/src/postgresql/src/backend/access/transam/xloginsert.c:497:10: note: ‘hole_length’ was declared here
   uint16 hole_length;

I've not checked whether they're spurious or not.

Greetings,

Andres Freund

-- 
 Andres Freund	                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



view thread (7+ messages)  latest in thread

Message-ID: <20150311141819.GI12445@alap3.anarazel.de>
Permalink:  ../20150311141819.GI12445@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20150311141819.GI12445@alap3.anarazel.de

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@2ndquadrant.com, fujii@postgresql.org
  Subject: Re: pgsql: Add GUC to enable compression of full page images stored in WAL.
  In-Reply-To: <20150311141819.GI12445@alap3.anarazel.de>
  References: <E1YVaX2-0003sF-71@gemulon.postgresql.org> <20150311141819.GI12445@alap3.anarazel.de>

* 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