Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f0AC7-00077x-2U for pgsql-committers@arkaria.postgresql.org; Sun, 25 Mar 2018 18:16:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f0AC5-0004RL-Pu for pgsql-committers@arkaria.postgresql.org; Sun, 25 Mar 2018 18:16:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f0AC5-0004RC-Ke for pgsql-committers@lists.postgresql.org; Sun, 25 Mar 2018 18:16:37 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f0AC2-0005e1-S8 for pgsql-committers@lists.postgresql.org; Sun, 25 Mar 2018 18:16:37 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w2PIGWTf014454; Sun, 25 Mar 2018 14:16:32 -0400 From: Tom Lane To: Teodor Sigaev , David Steele cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Exclude unlogged tables from base backups In-reply-to: References: Comments: In-reply-to Teodor Sigaev message dated "Fri, 23 Mar 2018 16:14:24 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <14452.1522001792.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 25 Mar 2018 14:16:32 -0400 Message-ID: <14453.1522001792@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Teodor Sigaev writes: > Exclude unlogged tables from base backups Buildfarm member skink (valgrind) has reported this during its last couple of runs: 2018-03-24 03:18:23.409 UTC [17302] 010_pg_basebackup.pl LOG: received re= plication command: BASE_BACKUP LABEL 'pg_basebackup base backup' NOWAIT= TABLESPACE_MAP =3D=3D17302=3D=3D VALGRINDERROR-BEGIN =3D=3D17302=3D=3D Conditional jump or move depends on uninitialised value(= s) =3D=3D17302=3D=3D at 0x4C2FD88: strlen (vg_replace_strmem.c:458) =3D=3D17302=3D=3D by 0x6FBA3AB: vfprintf (vfprintf.c:1643) =3D=3D17302=3D=3D by 0x6FE19AF: vsnprintf (vsnprintf.c:114) =3D=3D17302=3D=3D by 0x6FC0F6E: snprintf (snprintf.c:33) =3D=3D17302=3D=3D by 0x4A3C97: sendDir (basebackup.c:1060) =3D=3D17302=3D=3D by 0x4A40C6: sendDir (basebackup.c:1221) =3D=3D17302=3D=3D by 0x4A52B2: sendTablespace (basebackup.c:937) =3D=3D17302=3D=3D by 0x4A5740: perform_base_backup (basebackup.c:313) =3D=3D17302=3D=3D by 0x4A635C: SendBaseBackup (basebackup.c:710) =3D=3D17302=3D=3D by 0x49FCF2: exec_replication_command (walsender.c:15= 20) =3D=3D17302=3D=3D by 0x4F61CE: PostgresMain (postgres.c:4143) =3D=3D17302=3D=3D by 0x4712ED: BackendRun (postmaster.c:4409) =3D=3D17302=3D=3D Uninitialised value was created by a stack allocation =3D=3D17302=3D=3D at 0x4A38EA: sendDir (basebackup.c:957) =3D=3D17302=3D=3D = =3D=3D17302=3D=3D VALGRINDERROR-END 2018-03-24 03:18:26.127 UTC [17302] 010_pg_basebackup.pl DEBUG: contents = of directory "pg_serial" excluded from backup I might be wrong to blame that on this patch, but nothing else has touched basebackup.c lately. regards, tom lane