From: | Y_Bharani_mbsv <mailbsv(at)yahoo(dot)com> |
---|---|
To: | pgsql-general <pgsql-general(at)postgresql(dot)org>, Ron Johnson <ronljohnsonjr(at)gmail(dot)com> |
Subject: | Re: any tips to have restricted inbound and getting connected with postgresql dB |
Date: | 2024-12-20 22:49:35 |
Message-ID: | 1507580215.1602027.1734734975251@mail.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
TQ
On Friday, December 20, 2024 at 03:26:30 PM EST, Ron Johnson <ronljohnsonjr(at)gmail(dot)com> wrote:
On Fri, Dec 20, 2024 at 2:25 PM Y_Bharani_mbsv <mailbsv(at)yahoo(dot)com> wrote:
TeamI have the need to have postgresql db running in multiuser mode and do my needed tasks for few mins.
How to restrict all the application layer , not to get connected with the postgres db ,during my specific time window
1. Create a pg_hba_maintmode.conf with only the relevant hosts in it.2. Copy pg_hba.conf to pg_hba_multi.conf.3. Copy pg_hba_maintmode.conf to pg_hba.conf.4. pg_ctl reload.5. Use pg_stat_activity and pg_cancel_backend() to kill the application connections.6. Do your work.7. Copy pg_hba_multi.conf to pg_hba.conf.8. pg_ctl reload
Or... just shut down the user application.
--
Death to <Redacted>, and butter sauce.Don't boil me, I'm still alive.
<Redacted> lobster!
From | Date | Subject | |
---|---|---|---|
Next Message | Bharani SV-forum | 2024-12-20 22:51:02 | Re: any tips to have restricted inbound and getting connected with postgresql dB |
Previous Message | Ron Johnson | 2024-12-20 20:25:57 | Re: any tips to have restricted inbound and getting connected with postgresql dB |