Autocompletion for \sf does not work if there is more than one function

Started by PG Bug reporting form8 months ago2 messagesdocs
Jump to latest
#1PG Bug reporting form
noreply@postgresql.org

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/17/app-psql.html
Description:

test=> \sf+ app_con<TAB><TAB>

test=> \sf+ app_config
ERROR: more than one function named "app_config"

I expect to see arguments types: void or jsonb like:
test=> \sf app_con<TAB><TAB>
void jsonb

Because definition for those functions are:
Schema | Name | Result data type |

--------+------------+------------------+------------------------------------------------>
public | app_config | void | config jsonb

public | app_config | jsonb | keys text[] DEF

Best regards.

#2Eugen Konkov
kes-kes@yandex.ru
In reply to: PG Bug reporting form (#1)
Re: Autocompletion for \sf does not work if there is more than one function

Hello PG,

Friday, September 12, 2025, 8:55:14 PM, you wrote:

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/17/app-psql.html
Description:

test=>> \sf+ app_con<TAB><TAB>

test=>> \sf+ app_config

ERROR: more than one function named "app_config"

I expect to see arguments types: void or jsonb like:

test=>> \sf app_con<TAB><TAB>

void jsonb

Because definition for those functions are:
Schema | Name | Result data type |

--------+------------+------------------+------------------------------------------------>
public | app_config | void | config jsonb

public | app_config | jsonb | keys text[] DEF

Best regards.

btw autocompletion for "DROP FUNCTION" works as expected
=> drop function app_config (
jsonb) text) text[])

I expect the similar behaviour for \sf+

--
Best regards,
Eugen Konkov