Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rQhQr-0031WU-Ip for pgsql-hackers@arkaria.postgresql.org; Fri, 19 Jan 2024 05:28:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rQhQq-007EvW-G3 for pgsql-hackers@arkaria.postgresql.org; Fri, 19 Jan 2024 05:28:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rQhQq-007EvO-7C for pgsql-hackers@lists.postgresql.org; Fri, 19 Jan 2024 05:28:44 +0000 Received: from mail-lf1-x142.google.com ([2a00:1450:4864:20::142]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rQhQn-002aEU-IS for pgsql-hackers@postgresql.org; Fri, 19 Jan 2024 05:28:43 +0000 Received: by mail-lf1-x142.google.com with SMTP id 2adb3069b0e04-50e7ddd999bso430307e87.1 for ; Thu, 18 Jan 2024 21:28:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705642120; x=1706246920; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=TlgUN/Egx6jyGLQn6GKgIVLCu5p+VH5PBIHk+9moRG8=; b=FW0dzcep/v7CiKy5foWEJYhKyZBP+kZRHhKPPg71DVv3xC5v0+KRRNOWep/ewtkI/Q 0k0v39ZmRBrD9pIn+WTHCeRcQidJ7pxWtNyf1FOMRhKELOOS5Knqtb08DD7F5zaMp38T O1TVSWXC8FeJSeRsOeFRfX26afhbWCMgbeNLihmnk8WhOGxg0uYtXgTa+5LX8XjfxoOi NcGqa/sIt/gOXG8Sb2SG5J4gzZ4pX2ozN9r7HuOL41BWGRI0GFbwzoqb6/z/W/p2wiTu E7TwJzVbYjCHwrQ+2LTwFELxH6cjvS9XQoPrwACLsifTypEJZ4yZq1/rCodU8oN5f4Za shfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705642120; x=1706246920; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TlgUN/Egx6jyGLQn6GKgIVLCu5p+VH5PBIHk+9moRG8=; b=rQluF9XMFp2OYZjuaEffx7f20oIH9uZAPTTt8ryyd/u6hDkfvtOA+6CI/wt528G2Tp b6rfz0nsqxE+e9b1/Z6+ZoQ5YaiGc6y8TV5c+G15/RodVcmg+RD+Pk/w/1eA347HRCb9 Ok59N+XnTIE1pXY6ey5fE/tJTA8cqXRiqOQspBaE04MXFar5S2fusm7nBD+sLdL36bFv +DrOQ/IU6+lnpmj6Nl+aD4THPqMKLev+HjSnLqviLi9OsYvLb1bpY0OzGQJ/qBuf1ZKO N0QMp3lv6PHLV084PC6JO5OF9wDrH0IGAIrIr0L1LLp1UlM6pyIq3ewvHBP9IUov9wCe piqQ== X-Gm-Message-State: AOJu0Yyjm8IHwjC9t45Wg/aYV8Z38i/xvtijLs4yRN1x6qjXjbqf45uk JQCt9Uud2M8pQ3O2OJuFM3DWlvrOyn2fLkJrsesmzilMNlqMFgsBLjJsiHKQKP5sSYcTVzOMx/8 sBh7pPWmXFC/jfX5vkl9h9b1viM9JfW2e0bEUwA== X-Google-Smtp-Source: AGHT+IFHfmbNnC5eOgyswFDMeqQGcHXGVdcOJWDLqdcfWcK6X2WlalBzsWS6bLssCG3LXEw67T5MVycLOHrocmCbJWg= X-Received: by 2002:a05:6512:3183:b0:50b:e724:62a8 with SMTP id i3-20020a056512318300b0050be72462a8mr428721lfe.92.1705642119855; Thu, 18 Jan 2024 21:28:39 -0800 (PST) MIME-Version: 1.0 References: <75ae5875-3abc-dafc-8aec-73247ed41cde@eisentraut.org> <0375b1fb-c2e7-be24-806e-b3b96bd00c31@eisentraut.org> <9aea7c02-ca6f-4cf0-0e5a-bcc0fd959b7c@eisentraut.org> <4a72ce01-87c2-41a6-baab-f44a4b39e664@eisentraut.org> In-Reply-To: <4a72ce01-87c2-41a6-baab-f44a4b39e664@eisentraut.org> From: John Naylor Date: Fri, 19 Jan 2024 12:28:28 +0700 Message-ID: Subject: Re: generate syscache info automatically To: Peter Eisentraut Cc: pgsql-hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Jan 17, 2024 at 7:46=E2=80=AFPM Peter Eisentraut wrote: > > I updated the patch to use this style (but I swapped the first two > arguments from my example, so that the thing being created is named first= ). > > I also changed the names of the output files a bit to make them less > confusing. (I initially had some files named .c.h, which was weird, but > apparently necessary to avoid confusing the build system. But it's all > clearer now.) > > Other than bugs and perhaps style opinions, I think the first patch is > pretty good now. LGTM. The only style consideration that occurred to me just now was MAKE_SYSCACHE, since it doesn't match the DECLARE_... macros. It seems like the same thing from a code generation perspective. The other macros refer to relations, so there is a difference, but maybe it doesn't matter. I don't have a strong opinion.