Re: our checks for read-only queries are not great

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: our checks for read-only queries are not great
Дата
Msg-id 14123.1578848766@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: our checks for read-only queries are not great  (Laurenz Albe <laurenz.albe@cybertec.at>)
Список pgsql-hackers
Laurenz Albe <laurenz.albe@cybertec.at> writes:
> Perhaps it would be good to consider this question:
> Do we call something "read-only" if it changes nothing, or do we call it
> "read-only" if it is allowed on a streaming replication standby?
> The first would be more correct, but the second may be more convenient.

Yeah, this is really the larger point at stake.  I'm not sure that
"read-only" and "allowed on standby" should be identical, nor even
that one should be an exact subset of the other.  They're certainly
by-and-large the same sets of operations, but there might be
exceptions that belong to only one set.  "read-only" is driven by
(some reading of) the SQL standard, while "allowed on standby" is
driven by implementation limitations, so I think it'd be dangerous
to commit ourselves to those being identical.

            regards, tom lane



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

Предыдущее
От: Laurenz Albe
Дата:
Сообщение: Re: our checks for read-only queries are not great
Следующее
От: Peter
Дата:
Сообщение: Re: 12.1 not useable: clientlib fails after a dozen queries (GSSAPI?)