Ruleutils_17 Add support for AT LOCAL

Relevant PG commit:
97957fdbaa429c7c582d4753b108cb1e23e1b28a
97957fdbaa

(cherry picked from commit 39ec86a336)
pull/7725/head
naisila 2024-07-25 15:13:29 +02:00
parent 7145725a7c
commit 699fc4883d
1 changed files with 10 additions and 0 deletions

View File

@ -7127,6 +7127,16 @@ get_func_sql_syntax(FuncExpr *expr, deparse_context *context)
appendStringInfoChar(buf, ')');
return true;
case F_TIMEZONE_TIMESTAMP:
case F_TIMEZONE_TIMESTAMPTZ:
case F_TIMEZONE_TIMETZ:
/* AT LOCAL */
appendStringInfoChar(buf, '(');
get_rule_expr_paren((Node *) linitial(expr->args), context, false,
(Node *) expr);
appendStringInfoString(buf, " AT LOCAL)");
return true;
case F_OVERLAPS_TIMESTAMPTZ_INTERVAL_TIMESTAMPTZ_INTERVAL:
case F_OVERLAPS_TIMESTAMPTZ_INTERVAL_TIMESTAMPTZ_TIMESTAMPTZ:
case F_OVERLAPS_TIMESTAMPTZ_TIMESTAMPTZ_TIMESTAMPTZ_INTERVAL: