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 1qGaYa-0006me-VD for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Jul 2023 07:34:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qGaYZ-0006VY-SN for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Jul 2023 07:34:39 +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 1qGaYZ-0006VP-JH for pgsql-hackers@lists.postgresql.org; Tue, 04 Jul 2023 07:34:39 +0000 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qGaYW-0026Ss-Qy for pgsql-hackers@lists.postgresql.org; Tue, 04 Jul 2023 07:34:39 +0000 Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-4fb960b7c9dso8176385e87.0 for ; Tue, 04 Jul 2023 00:34:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688456075; x=1691048075; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=M3LbUfTtfa11Bl4CB/pBWBnbiV8uGc05rZfyitZ4bJk=; b=Z1M72bCn1qdQQJafuaFnlm3QND4QABtyQN7kQu7XWkBWN+cIPsD4mLOgJaU5P3vSne o8WKH1p2cIEGobxzajRF7dHhZ5DdHOUqQJelrIWEK2OpTrMz0qV89Arg5gSZqOKbjRoe BJ+BKmsoLNLLVO5GMrekk40p40B8DGrAimwQt0OPpxd+sinw+R+LjkYBSqFxFJQK1MKC xsMTScLk4CE5Wn4dxxZe8m2HD3kmKTgUEXBi8qX/cplieCbBNqnh99PLQCGz3ooD3fV2 9AbEt8vS8r7suYV7eG3EqcQm7ovddBbn4VLnnr7Vw+OpFM5Idk4S1YTNS09jZyODKHIi QDkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688456075; x=1691048075; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=M3LbUfTtfa11Bl4CB/pBWBnbiV8uGc05rZfyitZ4bJk=; b=kRd+lqlRuE4qZHwwq43xXARfEW6YCmRiLCfxwUMZ3pr4BdUHQ4KXB5KWAVFBoVHweG AzZLIDeeTH7LyNfotm0e3h/NXANRhX3QAmnYqK7CtB/V9NA60RDRSmEUZcBidEbA8DXC lluyj33vsIVhQtaBeIiu2vBo85x84dsCfZAAEon50aeudWCDnBNUzod9lfHlBMcR+BYD ky2YETveNIzXE0XyFcG4ECk3yEBkebDoBQdAedonCaXaMJAer9YrGHIJSjfz50XOqMi1 ft8QhIaCaJkTON00uzQpCXl1mgqSv8NzRbIWWXFOeSUnQrC7vYoOq6G0YrmU8CEnVQXA fcrQ== X-Gm-Message-State: ABy/qLbxdPUNQJVpefh/lnWGsBoUcSoEI3oFdHVGmTGliU452zG3zMVi c/STZ5CmLe/J7WP5lHVvRMs= X-Google-Smtp-Source: APBJJlF1XEJZqvcssCjYnCq8Y/OmoZ4BL0oHJcNzecNS1XjvE8RtigIyUGhLpLdCDuJSEJOlwyHziQ== X-Received: by 2002:a05:6512:b91:b0:4f8:596a:4bb7 with SMTP id b17-20020a0565120b9100b004f8596a4bb7mr10196037lfv.57.1688456074681; Tue, 04 Jul 2023 00:34:34 -0700 (PDT) Received: from ?IPV6:2a01:cb11:55e:1700:e41e:a8d9:34c2:2d97? ([2a01:cb11:55e:1700:e41e:a8d9:34c2:2d97]) by smtp.gmail.com with ESMTPSA id p8-20020a7bcc88000000b003fb225d414fsm22816284wma.21.2023.07.04.00.34.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Jul 2023 00:34:34 -0700 (PDT) Message-ID: <0b3cdac7-f078-61a6-76e0-99db7aae78ce@gmail.com> Date: Tue, 4 Jul 2023 09:34:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: Autogenerate some wait events code and documentation Content-Language: en-US To: Michael Paquier Cc: PostgreSQL Hackers References: <124bdcea-bdc8-e3d2-2357-0c6a857bc557@gmail.com> <106e8d0a-0820-687a-7da5-3143e1f5b05b@gmail.com> <976f4eb1-cbc0-9616-ec26-ebb4a252315c@gmail.com> <69588eaf-02d7-95a8-0da4-3e120de16a59@gmail.com> From: "Drouvot, Bertrand" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 7/3/23 9:11 AM, Michael Paquier wrote: > On Mon, Jul 03, 2023 at 03:57:42PM +0900, Michael Paquier wrote: Thanks for looking at it and having fixed the issues that were present in v10. >> I think that we should add some options to the perl script to be more >> selective with the files generated. How about having two options >> called --docs and --code to select one or the other, then limit what >> gets generated in each path? I guess that it would be cleaner if we >> error in the case where both options are defined, and just use some >> gotos to redirect to each foreach loop to limit extra indentations in >> the script. This would avoid the need to remove the C and H files >> from the docs, additionally, which is what the Makefile in doc/ does. >> >> I have fixed all the issues I've found in v11 attached, except for the >> last one (I have added the OUTDIR trick for reference, but that's >> incorrect and incomplete). Could you look at this part? > > Ah. It took me a few extra minutes, but I think that we should set > "capture" to "false", no? It looks like meson is getting confused, > expecting something in stdout but the new script generates a few > files, and does not output anything. That's different from the other > doc-related perl scripts. > -- Yeah, with "capture" set to "false" then ninja alldocs does not error out and wait_event_types.sgml gets generated. I'll look at the extra options --code and --docs. Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com