Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eegUL-0000nv-Gg for pgsql-hackers@arkaria.postgresql.org; Thu, 25 Jan 2018 12:18:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eegUL-0003ME-1v for pgsql-hackers@arkaria.postgresql.org; Thu, 25 Jan 2018 12:18:41 +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.84_2) (envelope-from ) id 1eegUK-0003M4-Lj for pgsql-hackers@lists.postgresql.org; Thu, 25 Jan 2018 12:18:40 +0000 Received: from mail-wr0-x22c.google.com ([2a00:1450:400c:c0c::22c]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eegUG-0004C0-U8 for pgsql-hackers@postgresql.org; Thu, 25 Jan 2018 12:18:40 +0000 Received: by mail-wr0-x22c.google.com with SMTP id g21so7416200wrb.13 for ; Thu, 25 Jan 2018 04:18:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=gAOQ8Q/xB5I5UCWmb6WqpSmT4aBn5m+QJXF4hA9TNLE=; b=ovdRZTWtNQsip+CtVu0URy0k9LosnoQKfbX9Ub2YqmsMlwqM+okYsrKbP5bHGREHeS m6vROa/CKen3NmvkvMR7CPeVR+lMQ5b8G0ezcoXbrPb1dlNGzdvK7QRML21iBKT8Ifeg QvA0AmyAv63tE+1NSy455ttsVpHQ8SVxP+8PvT9g3KTIh42Co9fuTuFRnaB9WA2JyFCn HXxfjDFy3J2HYcv6BTg+SO/y+QlDutnfpCWR0qLyln01GnfcWLSC0Z+Z61IvowRT8xbj KDv/1zYYyjHg2/LIlbDinRVt0tkRcbjnsdDJiSp7jI5M9tY61F3jjeDRL8HgdVTPjCtE b8YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=gAOQ8Q/xB5I5UCWmb6WqpSmT4aBn5m+QJXF4hA9TNLE=; b=G7yZxh3TNiAj/VP+ZTn3vMVE+VjPPVIp1Lo01w+BVZlEAqdqdL3lXI669AL6rfFLdl gBNJFQqD5msuNbHNNMTjuyJqrsiegQ7rdcB8eklRrb7ZI7+hPXZl1r2XuhYPirOGGnnf uqA1/qFTJq9XzRM/cYleJYMO6wgAR7twe4/X7B9K18yT7WSVsRvHlnWjTrkBsCxFV9Rt mxR9Tl/UOxJQ1JSZkQ897bipxxgBr9MLSCJI81FbtcaGOYKoWqwweaaHUW/Qo0O8enoA G0KCJHgytUdmO8xmgfXeCFXVofTG6rtWf9fIOEnrZLU7ZUxMKMbGetEriiqFM0hwDjTq CASQ== X-Gm-Message-State: AKwxytfhagatv+L1RRNPpfEkHCRi+t2yCxUpZg0TmyFXlILH4ymB3Jgh KqK/dLZl9sSh5fxoIan28PA19Pa5aI25veYiv9cbI9mWJ2LnYzQ5DqtNewVdZM3PWiV9J7lYOWl 587lFZPQjowco4DLGL9yZoPCsgtv7P/YIPEwhMYURd722WQV1h+ShHG5ZAIgJfHKwpn0ty1imHt vycXbTeu++iBE= X-Google-Smtp-Source: AH8x224JAIZXBtVNqRylHHAUBPco/EiubknX7Sw2BIvFug5F/JFTNH5nGEFMyHXOeEJeAyG0KUMfwQ== X-Received: by 10.223.151.140 with SMTP id s12mr7835465wrb.80.1516882715555; Thu, 25 Jan 2018 04:18:35 -0800 (PST) Received: from [192.168.0.106] (150.123.broadband11.iol.cz. [90.178.123.150]) by smtp.gmail.com with ESMTPSA id j125sm1270498wmd.19.2018.01.25.04.18.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jan 2018 04:18:34 -0800 (PST) Subject: Re: [PATCH] Logical decoding of TRUNCATE To: Thomas Munro , Marco Nenciarini Cc: Simon Riggs , PostgreSQL-development References: <269bf0d2-6ac4-c032-6979-22aad6a9f5fb@2ndquadrant.it> <35a1d60b-f66d-4001-499b-2336ca81fc6c@2ndquadrant.it> <1a4ace10-1997-6644-d17a-5a17bf250270@2ndquadrant.it> <28a59551-b1f5-8ed4-65cf-76d17e7ee7e6@2ndquadrant.it> <1cb9bd52-9e3a-21bf-0c0c-afa90f463629@2ndquadrant.com> <0361327b-5d59-32b0-cb13-e844acf0f0d0@2ndquadrant.it> <31773cc5-3b29-1740-e7d2-dc48e80a06ce@2ndquadrant.com> From: Petr Jelinek Message-ID: <8ef5c78a-1e98-dce5-82f7-bd0f6eba92e5@2ndquadrant.com> Date: Thu, 25 Jan 2018 13:18:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 25/01/18 08:26, Thomas Munro wrote: > On Wed, Jan 24, 2018 at 6:47 AM, Marco Nenciarini > wrote: >> Version 16 attached. > > Hi Marco, > > FYI this version doesn't compile: > > worker.c: In function ‘apply_handle_truncate’: > worker.c:888:39: error: ‘cascade’ undeclared (first use in this function) > relid = logicalrep_read_truncate(s, &cascade, &restart_seqs); > ^ > Indeed. We also found one more issue - the truncate done by logical replication worker is not logically logged which would break cascading. I expect Marco to send new version shortly with both of these fixed. -- Petr Jelinek http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services