Re: function signature allow "default" keyword

From: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
To: jian he <jian(dot)universality(at)gmail(dot)com>, pgsql-general list <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: function signature allow "default" keyword
Date: 2023-05-16 13:12:19
Message-ID: 24773cba-70e2-dde2-7973-ba384cf1f0d9@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Evgeny Morozov 2023-05-16 14:20:46 Re: "PANIC: could not open critical system index 2662" - twice
Previous Message Pavel Stehule 2023-05-16 04:26:45 Re: function signature allow "default" keyword