| From: | SATYANARAYANA NARLAPURAM <satyanarlapuram(at)gmail(dot)com> |
|---|---|
| To: | Andrei Lepikhov <lepihov(at)gmail(dot)com> |
| Cc: | Andres Freund <andres(at)anarazel(dot)de>, Peter Eisentraut <peter(at)eisentraut(dot)org>, Bruce Momjian <bruce(at)momjian(dot)us>, Jack Bonatakis <jack(at)bonatak(dot)is>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Read-only connection mode for AI workflows. |
| Date: | 2026-03-19 19:39:18 |
| Message-ID: | CAHg+QDfVrkwmYnGPi9uPJMtcvMhFLhyeDPRx-nLNckKg5UtanQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
On Wed, Mar 18, 2026 at 7:36 AM Andrei Lepikhov <lepihov(at)gmail(dot)com> wrote:
> On 18/3/26 15:26, Andres Freund wrote:
> > Regardless of the AI angle it's quite useful to be able to put a server
> into
> > read only mode, e.g. in preparation for a planned failover where you can
> > continue to allow reads but don't want any more writes. Or in
> preparation for
> > a shutdown you want to prevent further writes (so the shutdown
> checkpoint is
> > quick), but you do want to allow further reads (to reduce the scope of
> the
> > downtime, by allowing reads while doing a CHECKPOINT before the actual
> > shutdown).
>
> It returns us to the question about cluster-wide V/S session-wide
> read-only mode. Should we design one of them or consider both? What do
> you think?
>
+1 to scenarios Andres' mentioned. Additional cases where a cluster‑wide
setting is helpful include disk‑full events and policy enforcement, where
write access is revoked but read access is preserved for data exfiltration.
Session level is helpful for the AI use cases or to provide controlled user
access. I see value in supporting both.
Thanks,
Satya
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Corey Huinker | 2026-03-19 19:44:17 | Re: meson: Make test output much more useful on failure (both in CI and locally) |
| Previous Message | Tom Lane | 2026-03-19 19:24:36 | Re: Improve hash join's handling of tuples with null join keys |