File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 32
32
#include "nodes/nodeFuncs.h"
33
33
#include "utils/builtins.h"
34
34
#include "utils/inval.h"
35
+ #include "utils/ruleutils.h"
35
36
#include "utils/snapmgr.h"
36
37
#include "utils/lsyscache.h"
37
38
#include "utils/syscache.h"
@@ -781,6 +782,11 @@ add_to_pathman_config(PG_FUNCTION_ARGS)
781
782
/* Parse and check expression */
782
783
expr_datum = cook_partitioning_expression (relid , expression , & expr_type );
783
784
785
+ /* Canonicalize user's expression (trim whitespaces etc) */
786
+ expression = deparse_expression (stringToNode (TextDatumGetCString (expr_datum )),
787
+ deparse_context_for (get_rel_name (relid ), relid ),
788
+ false, false);
789
+
784
790
/* Check hash function for HASH partitioning */
785
791
if (parttype == PT_HASH )
786
792
{
You can’t perform that action at this time.
0 commit comments