pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: jian he <jian.universality@gmail.com>
To: pgsql-general list <pgsql-general@lists.postgresql.org>
Subject: Re: function signature allow "default" keyword
Date: Tue, 16 May 2023 15:12:19 +0200
Message-ID: <24773cba-70e2-dde2-7973-ba384cf1f0d9@enterprisedb.com> (raw)
In-Reply-To: <CACJufxFoh5wehchoMoAgusSNWDViOeu_LMkVWoBEuwWBGv05rQ@mail.gmail.com>
References: <CACJufxFoh5wehchoMoAgusSNWDViOeu_LMkVWoBEuwWBGv05rQ@mail.gmail.com>

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 <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.






view thread (5+ messages)

Message-ID: <24773cba-70e2-dde2-7973-ba384cf1f0d9@enterprisedb.com>
Permalink:  ../24773cba-70e2-dde2-7973-ba384cf1f0d9@enterprisedb.com/
Also on:    postgresql.org/message-id/24773cba-70e2-dde2-7973-ba384cf1f0d9@enterprisedb.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: peter.eisentraut@enterprisedb.com, jian.universality@gmail.com
  Subject: Re: function signature allow "default" keyword
  In-Reply-To: <24773cba-70e2-dde2-7973-ba384cf1f0d9@enterprisedb.com>
  References: <CACJufxFoh5wehchoMoAgusSNWDViOeu_LMkVWoBEuwWBGv05rQ@mail.gmail.com> <24773cba-70e2-dde2-7973-ba384cf1f0d9@enterprisedb.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox