ERRCODE_READ_ONLY_SQL_TRANSACTION - Mailing list pgsql-hackers

From Simon Riggs
Subject ERRCODE_READ_ONLY_SQL_TRANSACTION
Date
Msg-id CA+U5nMJdxdZbjLYFQS3dyGb2X=vC6ZKJsWqqNJ+6AYYtAmznEw@mail.gmail.com
Whole thread Raw
Responses Re: ERRCODE_READ_ONLY_SQL_TRANSACTION  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hot Standby returns ERRCODE_READ_ONLY_SQL_TRANSACTION in most cases
for illegal actions on a standby.

There are two possible but not normally seen cases that give errors,
but don't set the correct sqlstate, which makes it difficult to
diagnose misdirected SQL from more normal SQL problems.

*Patch corrects this. Thanks to Dimitri for the report.

Backpatching to 9.0

--
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: rewriteheap.c bug: toast rows don't get XIDs matching their parents
Next
From: "Kevin Grittner"
Date:
Subject: Re: Remembering bug #6123