summaryrefslogtreecommitdiff
path: root/src/include/utils/elog.h
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2024-08-21 09:08:16 +0530
committerAmit Kapila <akapila@postgresql.org>2024-08-21 09:08:16 +0530
commit915aafe82a7c31e9f7452e8cedf6371c318388bd (patch)
treedc87b09ede1d405318255281f36dab53f26c1278 /src/include/utils/elog.h
parent5effd5970429cdac56c8219eb4c0b8b047cac320 (diff)
Don't advance origin during apply failure.
We advance origin progress during abort on successful streaming and application of ROLLBACK in parallel streaming mode. But the origin shouldn't be advanced during an error or unsuccessful apply due to shutdown. Otherwise, it will result in a transaction loss as such a transaction won't be sent again by the server. Reported-by: Hou Zhijie Author: Hayato Kuroda and Shveta Malik Reviewed-by: Amit Kapila Backpatch-through: 16 Discussion: https://postgr.es/m/TYAPR01MB5692FAC23BE40C69DA8ED4AFF5B92@TYAPR01MB5692.jpnprd01.prod.outlook.com
Diffstat (limited to 'src/include/utils/elog.h')
-rw-r--r--src/include/utils/elog.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/utils/elog.h b/src/include/utils/elog.h
index 054dd2bf62f..e54eca5b489 100644
--- a/src/include/utils/elog.h
+++ b/src/include/utils/elog.h
@@ -226,6 +226,7 @@ extern int internalerrquery(const char *query);
extern int err_generic_string(int field, const char *str);
extern int geterrcode(void);
+extern int geterrlevel(void);
extern int geterrposition(void);
extern int getinternalerrposition(void);