Re: pg_sample

Поиск
Список
Период
Сортировка
От Daniel Verite
Тема Re: pg_sample
Дата
Msg-id 1b35610f-77b0-414f-b3c9-9dff188d7dc3@manitou-mail.org
обсуждение исходный текст
Ответ на Re: pg_sample  (Naveen Dabas <naveen@paymonk.com>)
Список pgsql-general
    Naveen Dabas wrote:

> Creating sample schema sampledb1
> DBD::Pg::db do failed: ERROR:  cannot execute CREATE SCHEMA in a read-only
> transaction at ./pg_sample line 296.

Maybe you ran this on a hot standby? It can't work because
this program needs to write data into the database,
which is not allowed outside of the primary node.

Or you may have default_transaction_read_only set to true
for the particular db/user of the connection.
https://www.postgresql.org/docs/current/static/runtime-config-client.html#GUC-DEFAULT-TRANSACTION-READ-ONLY

Best regards,
--
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite


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

Предыдущее
От: Daniel J Peacock
Дата:
Сообщение: Re: Erroneous behavior of primary key
Следующее
От: Daniel J Peacock
Дата:
Сообщение: Re: Erroneous behavior of primary key