Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ffDR6-00049f-6V for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Jul 2018 00:01:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ffDR4-0006Xf-E8 for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Jul 2018 00:01:46 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ffDR3-0006XX-Eg for pgsql-hackers@lists.postgresql.org; Tue, 17 Jul 2018 00:01:46 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ffDQz-0005iT-PM for pgsql-hackers@postgresql.org; Tue, 17 Jul 2018 00:01:44 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 67E6321F5A; Mon, 16 Jul 2018 20:01:40 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 16 Jul 2018 20:01:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=AtrR650mtoY0QpPpqJwL1Oz9Lny1Se7qHJMkqMfge+s=; b=o+/DIC6b 73boYOL7FS9714InG+kg7GeYSF1zNNlMe8kPMYuzZc5+By4Ox0z8VBljj0QrXKXt 4tFY+duxnxaUKz8u5cVqRvv8Uvh0O7jZiveVnr4ytyDMmIuIxM6TIaTzN4OsFXpK jzDk7QldAN5FNVaOoOIt9saGVdVL7bJfKAm57rwcfuM7PSSSt9HLkKLGUdbDNqLF boTDa7mMd3OpLXxBcg2IFiZvINiLLE5uid941R2mM5/1Yb7EOS2+YGK3lQ7aTd+9 GDl9m1HxQ/SIf/8CbsjpoSfFvVVb4nmiWIex4XH25zZy4LAJyfByGlQjRFMTCf5T YInTNkAFuwFxtg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=AtrR650mtoY0QpPpqJwL1Oz9Lny1S e7qHJMkqMfge+s=; b=KwWW1fef2TJ2fuxJJnPZoCo6hTpbHFKBJ9rGsy7xXc1cv 0nutHjW3wp6GzxmG9auCuCh6gaGCTZrJbCHigj3scYei7tvpRFaUQRbIndDwedRe 0UVQYo5uCU68e00ROhp3Z7xTBze9kLKcN9JKIHGCOrGCnFZjcIYVmsrziQfzogVq 5ED7oOfpsDYADHqW5SrbwFPCRV1A5GcgOsJ1dV8eebS8REnx+3IRzOQZZWi7JHj1 9K+DWyPzS7JtsXrbGueqwc0kxIQmZcJYgDZNQqudLj9WAshQUAsUF1vtSBy4sPNB uJqO5XK81sYGS4uKWG23fXCIyE13vqtigMUM5/kcg== X-ME-Proxy: X-ME-Sender: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 1487AE450F; Mon, 16 Jul 2018 20:01:37 -0400 (EDT) Date: Tue, 17 Jul 2018 09:01:29 +0900 From: Michael Paquier To: Heikki Linnakangas Cc: Robert Haas , Andrew Dunstan , "pgsql-hackers@postgresql.org" Subject: Re: [HACKERS] WAL logging problem in 9.4.3? Message-ID: <20180717000129.GA3388@paquier.xyz> References: <20180105041040.GI2416@tamriel.snowman.net> <20180111.170355.123986255.horiguchi.kyotaro@lab.ntt.co.jp> <20180330.100646.86008470.horiguchi.kyotaro@lab.ntt.co.jp> <20180704045912.GG1672@paquier.xyz> <20180711033241.GQ1661@paquier.xyz> <08b11907-d0b2-c396-2978-ba5aac1972df@iki.fi> <026AD6A1-3396-47F4-B87E-77E3F139D166@iki.fi> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="azLHFNyN32YCQGCU" Content-Disposition: inline In-Reply-To: <026AD6A1-3396-47F4-B87E-77E3F139D166@iki.fi> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --azLHFNyN32YCQGCU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 16, 2018 at 09:41:51PM +0300, Heikki Linnakangas wrote: > On 16 July 2018 21:38:39 EEST, Robert Haas wrote: >>On Thu, Jul 12, 2018 at 10:12 AM, Heikki Linnakangas >>wrote: >>> Doesn't have to be a trigger, could be a CHECK constraint, datatype >>input >>> function, etc. Admittedly, having a datatype input function that >>inserts to >>> the table is worth a "huh?", but I'm feeling very confident that we >>can >>> catch all such cases, and some of them might even be sensible. >> >>Is this sentence missing a "not"? i.e. "I'm not feeling very >>confident"? >=20 > Yes, sorry. This explains a lot :p I doubt as well that we'd be able to catch all the holes as well as the conditions where the optimization could be run safely are rather basically impossible to catch beforehand. I'd like to vote for getting rid of this optimization for COPY, this can hurt more than it is helpful. Per the lack of complaints, this could happen only in HEAD? -- Michael --azLHFNyN32YCQGCU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAltNMdkACgkQnvQgOdby QH2V4A//UgbGSRnGTM/tIWvKlUgNEaHSTFxRhmXwoLJIH71poCA6jzq8yg62wdCr zK0MbXTjsXaVZaLuRcym14P/D2wcnkUZScptjT/iaSnJeZm0OKpI3epya7w2GLN2 0GLIB6dzqgAgVOnlsYkd17VK5ht57Rmfk8RrFIIKT2hULKoDksjhp3ixZTMYnVuN d7WL9YPX7KZtNT3aXKjQLa6X62nWDremc8ZjrnarL1VxNePRinZ71qFnFHkz1OSI arPKgnBKtND+TXzdx+Ho4qBwid9IPhznRpTYzXhBozETWpso8NY7vFjM7HcfLZlT vbNC0i7hJnDyiftZcE/Htb0I27dWhkjkXN0QQf2V96Pghy8DKIoNDuzTJQdzbsgw nD/sS0twUTiTLmbu8eE0OX1KYQiyerWncsvZsuCUqkP/5mwv2tF9g8I12U/ACsQT kzcq4fns8goxmIKLFsM+8eVx+fQoYpfmRnYkb68tfJpQ9/Zgh6TAUBHGDb4c30m+ tR1q6kNSqoNhjLPUoCu5vqcdsXb6n41Ve8c1fvunINsElFLZ6vXm6VjkORngd016 VwW4IZk3k2Gzadm+nwe+jkLlSBnZfssUhc2ZQdmyFe2QOwpTfwTI39uNEQGg/jbH ti7ngeSPJe2gt7+WbjjGF2LttHc0IlYDwr6hFHQXR9QHEpaQXHA= =6Hpx -----END PGP SIGNATURE----- --azLHFNyN32YCQGCU--