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 1fTu95-0007CB-5J for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Jun 2018 19:12:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fTu93-0004ri-Bz for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Jun 2018 19:12:25 +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 1fTu93-0004rY-0D for pgsql-hackers@lists.postgresql.org; Fri, 15 Jun 2018 19:12:25 +0000 Received: from mail-qt0-x242.google.com ([2607:f8b0:400d:c0d::242]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fTu8z-0000z1-GX for pgsql-hackers@postgresql.org; Fri, 15 Jun 2018 19:12:23 +0000 Received: by mail-qt0-x242.google.com with SMTP id p23-v6so10021138qtn.6 for ; Fri, 15 Jun 2018 12:12:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=whzvefaFdXcv017rDP31Uzoh4jczgd1t9HOAUcuvFzU=; b=nQvYqzttK3v2nA5iDapuz1dSm4OiioBGsZs3/63q7y8rCbYCmkTDB1fHo9qlff9n4f b0oVN4qvXJJo4l8DgkFgoLZvS4bei2yrrUneEtSb3XwS/PRohBhJSbW09bU7YTWqpQZv S66Vgw2MWMfYPY6GDgTM76QV0jBgIFN/YJAbUPkBsOS7iWDkgcWn2r2mZHJ6R/57i5s6 OT+ypzUdv1UEuVq4GhU4Y0IlD+T8I25N3fOqV8uKYOjj72jpxl5Xb3zSMsDPSSurLxkF 4dIgVLQXiIHf/7hWs65Cca2qrsD7lhpbCYbhtK1nOA1eoaOQ8uC0upzi/E2hVLmsQUu6 8i1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=whzvefaFdXcv017rDP31Uzoh4jczgd1t9HOAUcuvFzU=; b=Vyw5vNJwiPujNILmQdihrYPRcRBdlJkpjr2Jt1UjZp4IWk22dYeTl6CmbHTm1v7S/7 KwbJO28aUaxlwAtpx3jGS0DdqOlkmRzEyCRSsU8cwk77/fCdtj/zyCK/No9sPE5JSvT2 IrKmFbRpdJXSIyC0Dv7cdxmdjxpYgUP4fe8ER2vzFblZ/+mR79Ag2cN70rj50mA017EH xfT1kbJRlNo5xwmtJKgOaFee/Xe5oYBTccOlqZB69uBDeJSd0wpOCewXcICbLjESasnO 1zM8+ECv5uDEyyiBKuWBBp9LMCMBb3CQjII80fdUYcgOqtxSspdhzhFdzbVuvEosIFL5 KdJQ== X-Gm-Message-State: APt69E29wiVt5JSNGQrF3uH+NxgHSuSl308AJWe/Du0ehE0hQf+SVv1a 52USWyD4KN8qc0SHVW4qRXu8lQ== X-Google-Smtp-Source: ADUXVKLFVfX5hwLkJPl1P1bUPIIE9yco1Q6vjtFcK5MUfJe7NdYq5i+9A7YXvcmIxy4ARobfY49X+w== X-Received: by 2002:ac8:6656:: with SMTP id j22-v6mr2691150qtp.158.1529089940590; Fri, 15 Jun 2018 12:12:20 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id r25-v6sm6724530qtc.39.2018.06.15.12.12.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Jun 2018 12:12:20 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 57A4B9F7; Fri, 15 Jun 2018 15:12:18 -0400 (-04) Date: Fri, 15 Jun 2018 15:12:18 -0400 From: Alvaro Herrera To: Nikhil Sontakke Cc: Heikki Linnakangas , Michael Paquier , Simon Riggs , pgsql-hackers Subject: Re: pgsql: Store 2PC GID in commit/abort WAL recs for logical decoding Message-ID: <20180615191218.py3ti2fzxlysxf7h@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="bsnsd72vapstjlg3" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --bsnsd72vapstjlg3 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit By the way, why do we need to strlen() the target buffer when strlcpy already reports the length? (You could argue that there is a difference if the string is truncated ... but surely we don't care about that case) I propose the attached. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services --bsnsd72vapstjlg3 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-no-need-for-separate-strlen.patch"