| From: | Anders Åstrand <anders(at)449(dot)se> |
|---|---|
| To: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
| Subject: | [patch] Add support for connection strings to createuser and dropuser |
| Date: | 2026-01-16 14:22:11 |
| Message-ID: | c54720d2-bb95-445e-a056-7d47b6670fec@449.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
All of the other CLI tools seems to support connection strings via the
PGDATABASE environment variable and the --maintenance-db command line
option, but this functionality is missing from createuser and dropuser.
Attached is a patch to bring them up to par with the other CLI tools.
There is an argument to be made for renaming or aliasing the
--maintenance-db parameter as --connection-string or similar for all of
these tools of course, but all of the others (except createdb and dropdb
afaics) accepts a "raw" connection string on the command line so it
might not matter much for them.
--
Anders Åstrand
Percona
| Attachment | Content-Type | Size |
|---|---|---|
| 0001-Add-support-for-connection-strings-in-user-CLI-tools.patch | text/x-patch | 8.9 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | jian he | 2026-01-16 14:24:34 | Re: [PATCH] Add pg_get_role_ddl() functions for role recreation |
| Previous Message | Zharkov Roman | 2026-01-16 14:18:48 | Re: Selectively invalidate caches in pgoutput module |