summaryrefslogtreecommitdiff
path: root/src/parser/outfuncs.c
diff options
context:
space:
mode:
authorBo Peng2020-09-07 00:45:29 +0000
committerBo Peng2020-09-07 00:45:29 +0000
commita8cc1e26cc204a49bea47eea05c711a981c17484 (patch)
tree914d45dc57973c8843ef4604e9086655c84fa3ba /src/parser/outfuncs.c
parent6197ffeca7a68c3c3538c4ab48169ff91b46e6c5 (diff)
Feature: Import PostgreSQL 13 beta3 new parser.
Major changes of PostgreSQL 13 parser include: - Remove an object's dependency on an extension ALTER TRIGGER ... NO DEPENDS ON EXTENSION ... ALTER FUNCTION ... NO DEPENDS ON EXTENSION ... - Allow FETCH FIRST to use WITH TIES FETCH FIRST ... WITH TIES - Add ALTER TABLE clause DROP EXPRESSION ALTER TABLE ... DROP EXPRESSION - Allow setting statistics target for extended statistics ALTER STATISTICS ... SET STATISTICS - Allow ALTER VIEW to rename view columns ALTER VIEW ... RENAME COLUMN ... TO ... - Add CREATE DATABASE clause LOCALE option CREATE DATABASE ... LOCALE - Add DROP DATABASE clause WITH FORCE option DROP DATABASE ... WITH (force) - Add VACUUM clause PARALLEL option VACUUM (PARALLEL 1) ...
Diffstat (limited to 'src/parser/outfuncs.c')
-rw-r--r--src/parser/outfuncs.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/parser/outfuncs.c b/src/parser/outfuncs.c
index bb78b5ee8..214d4713d 100644
--- a/src/parser/outfuncs.c
+++ b/src/parser/outfuncs.c
@@ -3,8 +3,8 @@
* outfuncs.c
* Output functions for Postgres tree nodes.
*
- * Portions Copyright (c) 2003-2019, PgPool Global Development Group
- * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
+ * Portions Copyright (c) 2003-2020, PgPool Global Development Group
+ * Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*
@@ -1002,6 +1002,11 @@ _outCreateStatsStmt(String * str, CreateStatsStmt *node)
}
static void
+_outAlterStatsStmt(String * str, const AlterStatsStmt *node)
+{
+}
+
+static void
_outNotifyStmt(String * str, NotifyStmt *node)
{
string_append_char(str, "NOTIFY ");
@@ -5842,6 +5847,9 @@ _outNode(String * str, void *obj)
case T_CreateStatsStmt:
_outCreateStatsStmt(str, obj);
break;
+ case T_AlterStatsStmt:
+ _outAlterStatsStmt(str, obj);
+ break;
case T_NotifyStmt:
_outNotifyStmt(str, obj);
break;