aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2022-11-24 10:45:10 +0100
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2022-11-24 10:45:10 +0100
commit8e7c86785a11cd3e56f895b8e2a489546c36a350 (patch)
treec665823d24320bf8ead5963d30b41d9fa386179d
parentc93254424f288557eeef13343be8f72536cb9ffe (diff)
downloadpostgresql-8e7c86785a11cd3e56f895b8e2a489546c36a350.tar.gz
postgresql-8e7c86785a11cd3e56f895b8e2a489546c36a350.zip
Make multixact error message more explicit
There are recent reports involving a very old error message that we have no history of hitting -- perhaps a recently introduced bug. Improve the error message in an attempt to improve our chances of investigating the bug. Per reports from Dimos Stamatakis and Bob Krier. Backpatch to 11. Discussion: https://postgr.es/m/CO2PR0801MB2310579F65529380A4E5EDC0E20A9@CO2PR0801MB2310.namprd08.prod.outlook.com Discussion: https://postgr.es/m/17518-04e368df5ad7f2ee@postgresql.org
-rw-r--r--src/backend/access/transam/multixact.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/access/transam/multixact.c b/src/backend/access/transam/multixact.c
index b643564f16a..fd02331ae39 100644
--- a/src/backend/access/transam/multixact.c
+++ b/src/backend/access/transam/multixact.c
@@ -800,7 +800,8 @@ MultiXactIdCreateFromMembers(int nmembers, MultiXactMember *members)
if (ISUPDATE_from_mxstatus(members[i].status))
{
if (has_update)
- elog(ERROR, "new multixact has more than one updating member");
+ elog(ERROR, "new multixact has more than one updating member: %s",
+ mxid_to_string(InvalidMultiXactId, nmembers, members));
has_update = true;
}
}