projects
/
plantuner.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb16288
)
Replace BackendIds with 0-based ProcNumbers Marina Polyakova <m.polyakova@postgrespro.ru>
author
Teodor Sigaev
<teodor@sigaev.ru>
Tue, 2 Apr 2024 11:43:02 +0000
(14:43 +0300)
committer
Teodor Sigaev
<teodor@sigaev.ru>
Tue, 2 Apr 2024 11:43:02 +0000
(14:43 +0300)
plantuner.c
patch
|
blob
|
history
diff --git
a/plantuner.c
b/plantuner.c
index
0c07b7f
..
e454698
100644
(file)
--- a/
plantuner.c
+++ b/
plantuner.c
@@
-102,7
+102,12
@@
indexesAssign(const char * newval, bool doit, GucSource source,
* follow work could be done only in normal processing because of
* accsess to system catalog
*/
- if (MyBackendId == InvalidBackendId || !IsUnderPostmaster ||
+#if PG_VERSION_NUM >= 170000
+ if (MyProcNumber == INVALID_PROC_NUMBER ||
+#else
+ if (MyBackendId == InvalidBackendId ||
+#endif
+ !IsUnderPostmaster ||
!IsTransactionState())
{
/* reset init state */