Re: Run postgresql engine in readonly mode?

Поиск
Список
Период
Сортировка
От Joshua Tolley
Тема Re: Run postgresql engine in readonly mode?
Дата
Msg-id e7e0a2570810111841k4ce9a591w14eb800a25796163@mail.gmail.com
обсуждение исходный текст
Ответ на Run postgresql engine in readonly mode?  (Galland Gregoire <greg.pg@practeo.ch>)
Ответы Re: Run postgresql engine in readonly mode?  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Re: Run postgresql engine in readonly mode?  (Steve Atkins <steve@blighty.com>)
Список pgsql-general
On Thu, Oct 9, 2008 at 2:37 AM, Galland Gregoire <greg.pg@practeo.ch> wrote:
> Hi all!
>
> I would like to run all my databases in a readonly mode just for a few
> hours (migration plan).
>
> Is it a way to tell the postgresql engine to run in readonly?
>
> Sincerly
>
> G.Galland
>

This comes up periodically on lists. There's not really a way. You can
set transactions as read only (see docs for SET TRANSACTION) but
that's probably not feasible, as you'd have to change your
application. You might create triggers preventing INSERTs and UPDATEs,
but a good bet is just to back up before hand and warn your users.

- Josh / eggyknap

В списке pgsql-general по дате отправления:

Предыдущее
От: "Raj K"
Дата:
Сообщение: Re: Reg: Permission error in Windows psql while trying to read sql commands from file
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: Run postgresql engine in readonly mode?