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.96) (envelope-from ) id 1wAG40-002D8C-27 for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Apr 2026 23:42:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wAG3y-003EJ6-2X for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Apr 2026 23:42:31 +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.96) (envelope-from ) id 1wAG3y-003EIy-1c for pgsql-hackers@lists.postgresql.org; Tue, 07 Apr 2026 23:42:30 +0000 Received: from mail-dl1-x122c.google.com ([2607:f8b0:4864:20::122c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wAG3w-00000001CZ1-2azB for pgsql-hackers@lists.postgresql.org; Tue, 07 Apr 2026 23:42:30 +0000 Received: by mail-dl1-x122c.google.com with SMTP id a92af1059eb24-12c1fcce8f8so805133c88.1 for ; Tue, 07 Apr 2026 16:42:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775605347; x=1776210147; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=stv/FQOrYY4YBoved/0j7iepwePzpmUjZ9YEXIqBXNI=; b=IM0g/K8jlzqpBNP3ox5pl11EsEYCpziaYlHePYX8ogqgtOMzACBUa6eb4p98TzZ6ZJ Zp15oIzIsiQAhMDZda+qI2nMhgKqHb3qswXnBBVI67LIbQ4Z3kPs9AWP3yh7/hEdUytX +5skTCIMKzUO6LYU1hMA9oSgW9XsF35aGLC/iME7v1V8+u8bFPtWYgzcWuQlQP4xYtTc GRbMOVzIzZ/ZPpIc48Kh8PjUKq9nv3sstbdbItOYsjArWfqYc4FZ/vT5wNHN/xXsi23/ IH3AXyIEVX5fBKM5wuobaHHEQmCUPz2oGPPmvmVMWMY0vpASg4kJAQw+QKmKBkjWF20n c3Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775605347; x=1776210147; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=stv/FQOrYY4YBoved/0j7iepwePzpmUjZ9YEXIqBXNI=; b=Hvp+XYPP6hWiIoRL30AKwLFY1BnimohgtaCCtg5OoeWnY/OeJ0kmwoN48KjY/CfuCF Kl/PmP5cgu47li/8aAYnUtLNIMoplZP/AcHiY5Mqx01RUc/rS6E6iTIUn4/YGWEfJ7go vGEpZPkR3OhURTK6Plw6qdR5djFNDMAnj+LqpU6xx69LuiHyB4n3dfvTIcYVVJn/aofo 1B0J3PoGKquvqWIxz2R8BBSbvTePurBH+7F3vXaAqHPvRItM5efoSWbdjylgJYyqlvM7 R71zS6E+WnBfuikFUmQgt5HURE5Bl2sI11D67BY00Vkhewy0xPyAg5AkMmEHZqHXC0cL UcrQ== X-Gm-Message-State: AOJu0YzZit4LIkoOw8STWIV/GZlBNcUtan5BSlQofvxNzoIYa7Q8e9Yx NLi1/zp+yZvY3cnFsyuRx73OCojX2g/DYK9QCCnnRkkMD33zRSeeokfgGLvrCRHE X-Gm-Gg: AeBDietL94OxAbLUaxKGJs0QvByZVQXxu/5ACn5yPIsn/ZS2rnzIzFRyp2f/d+32H1Y A2JS5DvlC5DdTVgP6phdjp8khuG4s7lO8JIEHkF+W68+Ot0ML1twZu8Mt7hPwxaVjYvF8vhzxFW DZD9OLmwrdJRtl2gbpQtJsnl9sW1L39WJapggTqQzlDa4F6VRcpYS3dkPjAB4rd11p0bzdj/RhB yW6hOyFaCCaG+XuZMZQOp3I71W8Nwyteq8Obwczc5cf7ssn6Nez+R8fwKo6cs2hgAcA9yCltJd7 F4pD0WfZxC83bopelhQwqbouAtjnXNIej5VVooeDv98lJGRxhsmg91g66xmke3oh+1l0QM/y5Wk UDDIxslit/g6hLJgUqmYkz67i3Zo3KMAKLVcCKAXNSXN6z7mO9l8ia7rrvRkVr1UXMZOFVxmpEs kbWFQpZgTxQB8Le2w2hCIKmrbJUIWwc/Wc7gPh0FsjviSm X-Received: by 2002:a05:7022:43a8:b0:12b:ee7b:51e9 with SMTP id a92af1059eb24-12bfb6eb3aamr10330388c88.4.1775605346732; Tue, 07 Apr 2026 16:42:26 -0700 (PDT) Received: from ltdrgnflg2 (71-34-92-171.ptld.qwest.net. [71.34.92.171]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-12bf90973b6sm18834939c88.9.2026.04.07.16.42.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Apr 2026 16:42:25 -0700 (PDT) Date: Tue, 7 Apr 2026 16:42:23 -0700 From: Mark Wong To: Andreas Karlsson Cc: pgsql-hackers@lists.postgresql.org Subject: Re: updates for handling optional argument in system functions Message-ID: References: <6de20662-36fd-4e00-a0b0-75d1e9deb5c8@proxel.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6de20662-36fd-4e00-a0b0-75d1e9deb5c8@proxel.se> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Apr 08, 2026 at 12:26:05AM +0200, Andreas Karlsson wrote: > On 4/2/26 8:36 PM, Mark Wong wrote: > > I've attached v5, simply a needed rebase due to some other churn in > > pg_proc.dat. > > Nice, I like the patch. The code changes looks good and I like the > removal of these duplicate functions and use of default arguments. But I > think the names of the arguments should be aligned with the names we > have in the documentation. And that may mean that we should change the > documentation. Thanks! > For example: > > = Code > > pg_get_ruledef(rule, pretty) > > = Docs > > pg_get_ruledef(rule_oid, pretty_bool) > > = Should docs maybe be updated to the following? > > pg_get_ruledef(rule oid, pretty bool) I agree with the aligning the names, but maybe I was looking in a different place? In the doc/src/sgml/func/func-info.sgml (a4f774cf1c7e) I think I see pg_get_ruledef(rule oid, pretty bool) already: pg_get_ruledef ( rule oid , pretty boolean ) I don't see any matches when I grep for rule_oid or pretty_bool... Regards, Mark