projects
/
online_analyze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b4de57
)
safity
master
author
Teodor Sigaev
<teodor@sigaev.ru>
Fri, 16 Oct 2026 08:34:00 +0000
(11:34 +0300)
committer
Teodor Sigaev
<teodor@sigaev.ru>
Fri, 16 Oct 2026 08:34:00 +0000
(11:34 +0300)
Dmitry Koval <d.koval@postgrespro.ru>
online_analyze.c
patch
|
blob
|
history
diff --git
a/online_analyze.c
b/online_analyze.c
index
22aa0fe
..
b044595
100644
(file)
--- a/
online_analyze.c
+++ b/
online_analyze.c
@@
-758,6
+758,7
@@
isFastTruncateCall(QueryDesc *queryDesc)
TargetEntry *te;
FuncExpr *fe;
Const *constval;
+ char *funcname;
if (!(
queryDesc->plannedstmt &&
@@
-790,7
+791,8
@@
isFastTruncateCall(QueryDesc *queryDesc)
if (!(
IsA(constval,Const) &&
constval->consttype == TEXTOID &&
- strcmp(get_func_name(fe->funcid), "fasttruncate") == 0
+ (funcname = get_func_name(fe->funcid)) != NULL &&
+ strcmp(funcname, "fasttruncate") == 0
))
return NULL;