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 1pyuWp-0004jk-Ps for pgsql-general@arkaria.postgresql.org; Tue, 16 May 2023 13:15:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pyuWo-0004wN-Of for pgsql-general@arkaria.postgresql.org; Tue, 16 May 2023 13:15:46 +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 1pyuTg-0006CZ-Ap for pgsql-general@lists.postgresql.org; Tue, 16 May 2023 13:12:32 +0000 Received: from new2-smtp.messagingengine.com ([66.111.4.224]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pyuTa-0008wo-33 for pgsql-general@lists.postgresql.org; Tue, 16 May 2023 13:12:31 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id E1808580F6A; Tue, 16 May 2023 09:12:23 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 16 May 2023 09:12:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1684242743; x= 1684249943; bh=ie8bm0X7TsjWOIhX5X8if5twVXxGXMZCNOKSfoDD13g=; b=m qQGL2OD5+6y0Z0E/2Yj9tGmyo66sJUv6KdvGew76ulTf49I5PW/4zZq9GaJatUkX wSHhCeWKrPpGOVh8p0VzjvP1g6I2t+rHHOkChYE2mCYRgtBdtr8diF+XVXbktjtq duj6OUsjX5eSLeDK22zQNHm7ji/3NnkDno2LjPGSQ5M0bHQKcjgYWQL+F6qOH+vy HE0qSMBFOZ4aPjVvmBhi/lZ5+TX+EvAR1OfOhbxLXdD0yoqg0G/q9bHsboo7xn+4 WVAaijCopU5brFm0h46GtMmablvlgT1kU1O0h58xd0YQzQLxtRCYf+tYnESKXrg8 WFbsO66csQiiqnDjfdnag== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeehledgieduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthejredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvg hrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnheptdehgfehgefhleelvddt lefgteekhffgheektdduhfehkeegvedttdffgfelgeetnecuffhomhgrihhnpegusghfih guughlvgdruhhknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhf rhhomhepphgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvghrphhrihhsvggusgdrtg homh X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 16 May 2023 09:12:21 -0400 (EDT) Message-ID: <24773cba-70e2-dde2-7973-ba384cf1f0d9@enterprisedb.com> Date: Tue, 16 May 2023 15:12:19 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: function signature allow "default" keyword Content-Language: en-US To: jian he , pgsql-general list References: From: Peter Eisentraut 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 On 15.05.23 10:33, jian he wrote: > function idea. > allow function calling using the default keyword for any of the input > arguments. > > example: https://dbfiddle.uk/FQwnfdmm > So something like this "SELECT * FROM customer_orders(2579927, > 'order_placed_on DESC', default, 2);" > should work. This is currently not supported by PostgreSQL. I have half a patch for it, though, so maybe we'll get to it one day.