| From: | Greg Sabino Mullane <htamfids(at)gmail(dot)com> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | Ian Lawrence Barwick <barwick(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: psql \df choose functions by their arguments |
| Date: | 2021-04-07 21:25:13 |
| Message-ID: | CAKAnmmLTML5RJ3bvXjwY8Jk+fcQMB4-c1N_3axMcB+AytXQ0GQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
I like the wildcard aspect, but I have a few issues with the patch:
* It doesn't respect some common abbreviations that work elsewhere (e.g.
CREATE FUNCTION). So while "int4" works, "int" does not. Nor does "float",
which thus requires the mandatory-double-quoted "double precision"
* Adding commas to the args, as returned by psql itself via \df, provides
no matches.
* There seems to be no way (?) to limit the functions returned if they
share a common root. The previous incantation allowed you to pull out
foo(int) from foo(int, bigint). This was a big motivation for writing this
patch.
* SQL error on \df foo a..b as well as one on \df foo (bigint bigint)
Cheers,
Greg
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Mark Dilger | 2021-04-07 21:34:41 | Re: multi-install PostgresNode fails with older postgres versions |
| Previous Message | Alvaro Herrera | 2021-04-07 21:06:19 | Re: multi-install PostgresNode fails with older postgres versions |