Re: Feature request: psql --idle

2022-07-28 Thread Wiwwo Staff
Thanks all for the alternative solutions. Yet, despite of my (wrong and misleading) use-case, I still share Julien's view of this being useful, whatever the parameter or the use-case. My 2 cents :-) On Wed, Jul 27, 2022 at 2:49 PM Wiwwo Staff wrote: > Since changing ph_hda.conf file to give us

Re: Feature request: psql --idle

2022-07-27 Thread Michael Nolan
On Wed, Jul 27, 2022 at 7:50 AM Wiwwo Staff wrote: > Since changing ph_hda.conf file to give users access involves the restart > of server, many companies I work(ed) use a bastion host, where users ssh > to, and are allowed "somehow" use postgresql. > > Still, those users need some login shell. >

Re: Feature request: psql --idle

2022-07-27 Thread Julien Rouhaud
Hi, On Wed, Jul 27, 2022 at 02:49:45PM +0200, Wiwwo Staff wrote: > Since changing ph_hda.conf file to give users access involves the restart > of server, many companies I work(ed) use a bastion host, where users ssh > to, and are allowed "somehow" use postgresql. You mean pg_hba.conf right? It d

Re: Feature request: psql --idle

2022-07-27 Thread Mateusz Henicz
Hi, Your first sentence is wrong. Changing pg_hba.conf file does not require server restart. It is enough to reload the configuration using "pg_ctl reload", "select pg_reload_conf();" in psql or just sending SIGHUP from linux terminal to postmaster process after changing the pg_hba file. To achiev

Feature request: psql --idle

2022-07-27 Thread Wiwwo Staff
Since changing ph_hda.conf file to give users access involves the restart of server, many companies I work(ed) use a bastion host, where users ssh to, and are allowed "somehow" use postgresql. Still, those users need some login shell. It would be great to give them psql as a login shell (in /etc/