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 1wAXMp-0004LX-2K for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Apr 2026 18:11:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wAXMo-001C2O-0I for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Apr 2026 18:11:06 +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 1wAXMn-001C2G-2R for pgsql-hackers@lists.postgresql.org; Wed, 08 Apr 2026 18:11:06 +0000 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wAXMm-000000002sr-1pNU for pgsql-hackers@lists.postgresql.org; Wed, 08 Apr 2026 18:11:06 +0000 Received: by mail-pg1-x52b.google.com with SMTP id 41be03b00d2f7-c648bc907ebso21672a12.3 for ; Wed, 08 Apr 2026 11:11:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775671862; x=1776276662; 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=pZ6gzXC46jIJhjNvulmgIxU2I1k5w2pJpHYGrGdAc3g=; b=pjMXzqbRHqEEzLz9C5jrT7c2gxVy/Gg6v7kAgtF3xCHN/59jvNVimOWX8tW+NPRmup bB0V0Fnd58w0B3H0t4a47Nb50PzJVfhY2puVuh6c4TLrUReR9NUfUXU9IWfsHjmdS3+Z MaoMkAC1zden3AZ6e/Nx3MFqsQ3/mOYiUU56lQaCS5adY4tTZqC/F7bSIOni79vgoDmy bJrN1PLGKID1pekRASoaP07TZl/K+cJdJm6G7XqYHsFJ22szcxD4HD+ci76k7OPbWkdv qeE0VLpm4v4wkR96XStwy9Y+nRnGPr4o0eOdLz2iRDzEKf6yGG5UHOGasZgNPJ8nmdoe ZDxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775671862; x=1776276662; 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=pZ6gzXC46jIJhjNvulmgIxU2I1k5w2pJpHYGrGdAc3g=; b=hxz0y0fERPAC/RHy6/oZB0QAlaL7AxWWClvSQldDH2xRk3OEgb+eW3DXspYbxz/Y6n xEkNOh4tt0DaSGDmIQpu1YVSY8BBkgOb8QKUKxIH78im32KfyIPJ7OKNfWfhgu7ktZ0t W4hAe0X6+34cA1/g7G3KsApf80PNXNIKNKC8dp8Hjo108L71uyhVnEl/wyF6cFFUbkor y8i0gENJsI/fdjp8PucwXob2bn43KAjbiEoFn3+vGvG5gvc29r4ZTkQOlPSWFpy6EYgm HFsrC3lJLTqOUcRn00wZIx/o8ptK6Em3/qqxZs7mpkpox2TfaIOxaawLYrof2REMueAC 3cFg== X-Gm-Message-State: AOJu0Yy3uRnKbfsHujB5fYmFbUadF/xaNJjFSnATq8M3mG0gi+ncSity 6bwTS3iZomS8zcOlezENFJ4wvUFg1M6xlb5mrDWOSN2b9h4yw2bNLTG8XAgxNmU7 X-Gm-Gg: AeBDieuSREnygPBTMt1Blr+M6gS5izW59DwEW1RUQuWudpQJR7/Dlb6wSLOSt9vEqze TNEjLgWqdvu8lCTlHwerDYvlc1L1c/X5rndngb7nlUWTWpuhhsv/pL6djNBqzEIqkUr9PGPCnAK SwaZYWWZSe0VeeSa5qPuUXd5HNXSXxuIJ9y6P04wDCx536l/M85ALD6odEaZEIEILlx0oXQN+Uo AeAoe8Yvq0kOlE232LUhb65mfbpCsFbTubZHVMitrnI6Um70RT4DEismFKiQr9erfKAsBTYnLZC 0Gm7v4DL8/56DBhZiKbA+blS1MEkAUJCXBMXUwB7EfG1hNkPH9j12oywq9cUlzwl6Oyd4ngLeFc OK236sBq+YFa6O0ODMUutQqF5zFyxEzER0ZqMftqoG/EUSbitR2tLGAFJoKM6x71lm8qZx524Kx bsKyAtCq/csE2NomtocJodETVJVdeOEEXQ9bYUAj88Vxpe X-Received: by 2002:a05:7301:1f04:b0:2c5:b23e:48a2 with SMTP id 5a478bee46e88-2cbfa4c48f0mr11954191eec.8.1775671862164; Wed, 08 Apr 2026 11:11:02 -0700 (PDT) Received: from ltdrgnflg2 (71-34-92-171.ptld.qwest.net. [71.34.92.171]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2cc6e17e0bdsm18422850eec.31.2026.04.08.11.11.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Apr 2026 11:11:01 -0700 (PDT) Date: Wed, 8 Apr 2026 11:10:55 -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: multipart/mixed; boundary="GzYugJnip6WHHvTk" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --GzYugJnip6WHHvTk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Apr 08, 2026 at 01:51:30AM +0200, Andreas Karlsson wrote: > On 4/8/26 1:42 AM, Mark Wong wrote: > > I don't see any matches when I grep for rule_oid or pretty_bool... > > Sorry for the noise, I was looking at an old version of the docs. The > parameters do indeed match the docs. But now that I looked at the > patches again I found a real issue which I think should be fixed. No worries. > I think the following: > > "select statement of a view with pretty-print option" > > should likely just be: > > "select statement of a view" Yeah, I agree with that considering that other functions like the recent get_*_ddl functions have options like that aren't detailed in pg_proc.dat. What I pondered over a little bit was whether to flip-flop and remove the original _ext definitions instead and modify their respective counterparts that I originally removed. I opted to continue editing what I started because of the comment that reads "System-view support functions with pretty-print option", but I don't have any strong opinions either way. I've attached v7 with the more succinct descriptions. Regards, Mark --GzYugJnip6WHHvTk Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=v7-0001-Handle-pg_get_ruledef-default-args-in-system_func.patch