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 3232#include "nodes/nodeFuncs.h"
3333#include "utils/builtins.h"
3434#include "utils/inval.h"
35+ #include "utils/ruleutils.h"
3536#include "utils/snapmgr.h"
3637#include "utils/lsyscache.h"
3738#include "utils/syscache.h"
@@ -781,6 +782,11 @@ add_to_pathman_config(PG_FUNCTION_ARGS)
781782 /* Parse and check expression */
782783 expr_datum = cook_partitioning_expression (relid , expression , & expr_type );
783784
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+
784790 /* Check hash function for HASH partitioning */
785791 if (parttype == PT_HASH )
786792 {
You can’t perform that action at this time.
0 commit comments