Re: Read-only connection mode for AI workflows.

Поиск
Список
Период
Сортировка
Искать
От
Peter Eisentraut
Тема
Re: Read-only connection mode for AI workflows.
Дата
в 13:09:26
Msg-id
138cfd8c-b305-4303-9700-bc53ff4fb926@eisentraut.org
Ответ на
Список
Дерево обсуждения
Read-only connection mode for AI workflows. Mat Arye <mat@tigerdata.com>
Re: Read-only connection mode for AI workflows. Andrei Lepikhov <lepihov@gmail.com>
Re: Read-only connection mode for AI workflows. "Jack Bonatakis" <jack@bonatak.is>
Re: Read-only connection mode for AI workflows. Andrei Lepikhov <lepihov@gmail.com>
Re: Read-only connection mode for AI workflows. Andrei Lepikhov <lepihov@gmail.com>
Re: Read-only connection mode for AI workflows. Peter Eisentraut <peter@eisentraut.org>
Re: Read-only connection mode for AI workflows. Greg Sabino Mullane <htamfids@gmail.com>
Re: Read-only connection mode for AI workflows. Jelte Fennema-Nio <postgres@jeltef.nl>
Re: Read-only connection mode for AI workflows. Isaac Morland <isaac.morland@gmail.com>
Re: Read-only connection mode for AI workflows. Bruce Momjian <bruce@momjian.us>
Re: Read-only connection mode for AI workflows. Pavel Stehule <pavel.stehule@gmail.com>
Re: Read-only connection mode for AI workflows. Andrei Lepikhov <lepihov@gmail.com>
Re: Read-only connection mode for AI workflows. Pavel Stehule <pavel.stehule@gmail.com>
Re: Read-only connection mode for AI workflows. Bruce Momjian <bruce@momjian.us>
Re: Read-only connection mode for AI workflows. Andrei Lepikhov <lepihov@gmail.com>
Re: Read-only connection mode for AI workflows. Bruce Momjian <bruce@momjian.us>
Re: Read-only connection mode for AI workflows. Andrei Lepikhov <lepihov@gmail.com>
Re: Read-only connection mode for AI workflows. Bruce Momjian <bruce@momjian.us>
Re: Read-only connection mode for AI workflows. Peter Eisentraut <peter@eisentraut.org>
Re: Read-only connection mode for AI workflows. Andres Freund <andres@anarazel.de>
Re: Read-only connection mode for AI workflows. Andrei Lepikhov <lepihov@gmail.com>
Re: Read-only connection mode for AI workflows. SATYANARAYANA NARLAPURAM <satyanarlapuram@gmail.com>
Re: Read-only connection mode for AI workflows. Jacob Champion <jacob.champion@enterprisedb.com>
Re: Read-only connection mode for AI workflows. Bruce Momjian <bruce@momjian.us>
On 19.03.26 08:44, Andrei Lepikhov wrote:
> On 16/3/26 22:01, Andrei Lepikhov wrote:
>> On 16/3/26 20:28, Jack Bonatakis wrote:
>>> On Mon, Mar 16, 2026, at 2:08 PM, Andrei Lepikhov wrote:
>>>> I believe the pg_readonly [1] extension does what you're looking 
>>>> for, so
>>>> you might want to give it a try.
>>> Please correct me if I am mistaken, but it looks like pg_readonly 
>>> operates at the database or cluster level. 
> 
> Take a look at the [1] project. It's a simpler version of [2] that 
> always switches to read-only mode.
> To use it, just have your connection pooler load the 'safesession' 
> module. This will keep the session in read-only mode until it ends. 
> There are no GUCs, and there is no way to change the mode, even for a 
> superuser. Does this seem safe enough?
> 
> We could improve it by restricting manual calls to specific utility 
> operations, such as VACUUM or REINDEX. However, we would need some 
> specifications first.

Here is a stalled project to implement ALTER SYSTEM READ ONLY: 
https://www.postgresql.org/message-id/flat/CAAJ_b97KZzdJsffwRK7w0XU5HnXkcgKgTR69t8cOZztsyXjkQw%40mail.gmail.com

Maybe that could be reactivated, but the reason it stalled was that it 
was hard.



В списке pgsql-hackers по дате отправления
От: Marco Nenciarini
Дата:
От: Tatsuo Ishii
Дата:
Сообщение: Re: Row pattern recognition
FAQ