Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gc8N0-000148-2K for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Dec 2018 12:33:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gc8My-00049K-Nw for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Dec 2018 12:33:04 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gc8My-00049D-DJ for pgsql-hackers@lists.postgresql.org; Wed, 26 Dec 2018 12:33:04 +0000 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gc8Mv-0005pm-90 for pgsql-hackers@postgresql.org; Wed, 26 Dec 2018 12:33:03 +0000 Received: by mail-qt1-x844.google.com with SMTP id l11so17158503qtp.0 for ; Wed, 26 Dec 2018 04:33:00 -0800 (PST) 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=Z8MrhyyHP6F+7TyKWS7T9jhrm1ghnOJhKhKG52I/aYA=; b=t6g6dFFkkzsXMA7wVAcAB8eo+UfIyNPJeM8FabirpzwoTgkEjx0jUc4V8pJFD07bBm /LrORrlpZvipdf70FL5Xovo/QfPXk9Svo6+kbogp2TX8EbIvIVHv2Tkm9hAGR43g+QuX +feNnNwn7rhQNPpytmGmYKbjbnTouhs8LWY0UmaBah64+MddwdTV3XISXN8aJMeER4MY bbDUiAfd2v/hJfQ3lDOOihigLsHj/iya29U6JbzvnNluRnuK/UFLeX2qjnbhKcSf6mQq uK2Mbv74mFtR59Rvt57GhOKpFLAqoLBm+bowFwwx5t9V5ZOeBDiVqcjHKa6CjFilzqyS Eg1Q== 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=Z8MrhyyHP6F+7TyKWS7T9jhrm1ghnOJhKhKG52I/aYA=; b=TFwaHLd3tRfwc+DcqTsBK4KERtcL9yq6F4a9EGHthJWComnvg8TzE7zkkx/y9KEvHQ 0PRjz69c3t+H2ow3R0ePzGHzxqjnTyG+Ocax7ldrAbXKR4W7PKTuAXO1ISl0EIJjwFA0 ryR4BtOS72alIrHnwg3J9wpy783gO+95vEWE2zpLBMJFl8oyweUQC/JDnqdg3FFkfPaL upuKVJJNZPxcYQP1unM3bujD8balKvyuQILzNkTjFZpJLQ9aFdhLAaUrwH+8BGUMWU1l TgwfRinC8/rbTt9+0zLYmTXu475Hk7Z3kRNcxDCbCGKE0N0ERb9nZvNg1G7RcNzRH8QR ckYQ== X-Gm-Message-State: AJcUukf9/27MfjiCLygzBjJlCSViMv68JeOob/rMh5QRvy6u6Y7wBGk+ l8pRENYd/NcFOY07awrM2PxOzA== X-Google-Smtp-Source: ALg8bN751Ex1yUV9Q2UCk3xR1PyccAedivxxgmvqhIIUzz1PfBGC26ss8OqJLi+p7AXtzAA0qTN1Jw== X-Received: by 2002:ac8:1185:: with SMTP id d5mr18593095qtj.117.1545827578528; Wed, 26 Dec 2018 04:32:58 -0800 (PST) Received: from alvin.alvh.no-ip.org ([201.186.80.67]) by smtp.gmail.com with ESMTPSA id w15sm14840820qta.16.2018.12.26.04.32.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 26 Dec 2018 04:32:57 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 58907917; Wed, 26 Dec 2018 09:32:56 -0300 (-03) Date: Wed, 26 Dec 2018 09:32:56 -0300 From: Alvaro Herrera To: Fabien COELHO Cc: Peter Eisentraut , Michael Paquier , Heikki Linnakangas , pgsql-hackers Subject: Re: chained transactions Message-ID: <20181226123256.yew55jvrjbkcwk2x@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Dec-26, Fabien COELHO wrote: > > > Copying & comparing nodes are updated. Should making, outing and reading > > > nodes also be updated? > > > > TransactionStmt isn't covered by the node serialization functions, so I > > didn't see anything to update. What did you have in mind? > > Sigh. I had in mind that the serialization feature would work with all > possible nodes, not just some of them… which seems quite naïve. The whole > make/copy/cmp/in/out functions depress me, all this verbose code should be > automatically generated from struct declarations. I'm pretty sure there are > hidden bugs in there. There may well be, but keep in mind that the nodes that have out and read support are used in view declarations and such (stored rules); they are used pretty extensively. Nodes that cannot be part of stored rules don't need to have read support. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services