diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2022-11-24 10:45:10 +0100 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2022-11-24 10:45:10 +0100 |
commit | 5a185246f9a742371a75ac0e3a95d0ceba9494e5 (patch) | |
tree | daed28d3fc071e4ad4b1f0aecfb7bcfe5aafa2f9 /src | |
parent | f4b777e77dbc46b657bd3ea331ba9f14fe4d34c9 (diff) | |
download | postgresql-5a185246f9a742371a75ac0e3a95d0ceba9494e5.tar.gz postgresql-5a185246f9a742371a75ac0e3a95d0ceba9494e5.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
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/access/transam/multixact.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/access/transam/multixact.c b/src/backend/access/transam/multixact.c index 7990b5e5dd9..383c991ced2 100644 --- a/src/backend/access/transam/multixact.c +++ b/src/backend/access/transam/multixact.c @@ -781,7 +781,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; } } |