Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mNpEe-0006d9-63 for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Sep 2021 04:30:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mNpEc-0002T5-Gl for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Sep 2021 04:30:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mNpEc-0002Sw-8e for pgsql-hackers@lists.postgresql.org; Wed, 08 Sep 2021 04:30:54 +0000 Received: from mail-qv1-xf31.google.com ([2607:f8b0:4864:20::f31]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mNpEZ-0001ZC-Lt for pgsql-hackers@postgresql.org; Wed, 08 Sep 2021 04:30:53 +0000 Received: by mail-qv1-xf31.google.com with SMTP id gf5so540176qvb.9 for ; Tue, 07 Sep 2021 21:30:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=22L1VbKZ577yHJozN0HaRPTX8lfvkQTcHy94NaA6Pg4=; b=KOhvAtCM29etF/wKZ64E/1iPIg/AJN4afa9PB6zV2H+tWyrGKl31/wlt87obePr9bT fTBe8E85Ax8Lz0rh+pNIWdVGHRgK2fCIGBW2YzQKm92LnMQbW8p4oPLfE2NgxL7XrghU QD2qgUrhhPwuGlOeeZknO41P3hM6lJtTV2Zf8= 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=22L1VbKZ577yHJozN0HaRPTX8lfvkQTcHy94NaA6Pg4=; b=pSJYZEumdEJ1+JmyWM0pGPDEgISUIXp55gJEBU45MW8b5BEbrQq1Qn41TrsYHupZ4N 82dtXsPbhkV/1KA986gFasrgAFL9WnADijxrWwcwHScygCb7CIv6eD5Vn4c1kMNjLSia OlOxsGajTEPHdAz4x/I1ocoMCNvSlnXrSr8BPsOcsLzBQU6ZdpYfWlYv2k5RvMI86GdX DXylU7JOcqdS8DS027RSEnqOusc3KTmpw9HoVKV6xLIKTpC+4q82YwrJ3oFDRF/CFy/5 fHEGEjso91Xry66WZ++VBeLh25cWPKJ9aJ7iB8RuJRH7YYA3Z1XPOAOp95uMNV/yd0s4 SRYg== X-Gm-Message-State: AOAM532n7FopZyKXAsWkcxwLLJq36KjghTgC7d6h3TQ/GOx0F1q5m5/3 tUPn03poebva0mt3Y/SIJbFjIA== X-Google-Smtp-Source: ABdhPJypBztNzVdx8bprcqKih+Pgb70mJI00FyGB2hvmfbOw6DgC5hPthRrzXTbPlyoSL5T/WvPwmQ== X-Received: by 2002:a0c:aa52:: with SMTP id e18mr1818049qvb.38.1631075449404; Tue, 07 Sep 2021 21:30:49 -0700 (PDT) Received: from rfd.leadboat.com ([2600:1702:a20:5750::46]) by smtp.gmail.com with ESMTPSA id b1sm778588qtj.76.2021.09.07.21.30.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Sep 2021 21:30:48 -0700 (PDT) Date: Tue, 7 Sep 2021 21:30:46 -0700 From: Noah Misch To: Peter Eisentraut Cc: Jacob Champion , "pgsql-hackers@postgresql.org" Subject: Re: automatically generating node support functions Message-ID: <20210908043046.GA2492610@rfd.leadboat.com> References: <2f876203-7142-fa71-6d22-6ce00eb26869@enterprisedb.com> <5451a7c4-3ccc-8b28-80d0-549e030cc01d@enterprisedb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5451a7c4-3ccc-8b28-80d0-549e030cc01d@enterprisedb.com> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Sep 07, 2021 at 10:57:02AM +0200, Peter Eisentraut wrote: > On 02.09.21 20:53, Jacob Champion wrote: > >>0004-Make-node-output-prefix-match-node-structure-name.patch > >> > >>Some nodes' output/read functions use a label that is slightly different > >>from their node name, e.g., "NOTIFY" instead of "NOTIFYSTMT". This > >>cleans that up so that an automated approach doesn't have to deal with > >>these special cases. > > > >Is there any concern about the added serialization length, or is that > >trivial in practice? The one that particularly caught my eye is > >RANGETBLENTRY, which was previously RTE. But I'm not very well-versed > >in all the places these strings can be generated and stored. > > These are just matters of taste. Let's wait a bit more to see if anyone is > concerned. I am not concerned about changing the serialization length this much. The format is already quite verbose, and this change is small relative to that existing verbosity.