This is an automated email from the ASF dual-hosted git repository.

duanzhengqiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new e25ac206211 Support Parsing `ALTER PUBLICATION` in PostgreSQL (#18427)
e25ac206211 is described below

commit e25ac20621176a9ab8a0e19fca3c46face6a2b50
Author: Everly Precia Suresh <[email protected]>
AuthorDate: Mon Jun 20 10:41:31 2022 +0530

    Support Parsing `ALTER PUBLICATION` in PostgreSQL (#18427)
    
    * Support Parsing ALTER PUBLICATION in PostgreSQL
    
    * remove blank lines
    
    * changeback to qualifiedName
---
 .../src/main/antlr4/imports/postgresql/BaseRule.g4 |  6 +--
 .../main/antlr4/imports/postgresql/DDLStatement.g4 |  4 +-
 .../parser/autogen/PostgreSQLStatementParser.g4    |  1 +
 .../impl/PostgreSQLDDLStatementSQLVisitor.java     |  7 ++++
 .../core/database/visitor/SQLVisitorRule.java      |  2 +
 .../statement/ddl/AlterPublicationStatement.java   | 26 ++++++++++++
 .../ddl/PostgreSQLAlterPublicationStatement.java   | 29 +++++++++++++
 .../jaxb/cases/domain/SQLParserTestCases.java      |  5 +++
 .../ddl/AlterPublicationStatementTestCase.java     | 26 ++++++++++++
 .../main/resources/case/ddl/alter-publication.xml  | 26 ++++++++++++
 .../sql/supported/ddl/alter-publication.xml        | 26 ++++++++++++
 .../main/resources/sql/unsupported/unsupported.xml | 48 ----------------------
 12 files changed, 152 insertions(+), 54 deletions(-)

diff --git 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/imports/postgresql/BaseRule.g4
 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/imports/postgresql/BaseRule.g4
index c99277db0f0..f9450b3763e 100644
--- 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/imports/postgresql/BaseRule.g4
+++ 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/imports/postgresql/BaseRule.g4
@@ -1808,10 +1808,8 @@ relationExprList
     ;
 
 relationExpr
-    : qualifiedName
-    | qualifiedName ASTERISK_
-    | ONLY qualifiedName
-    | ONLY LP_ qualifiedName RP_
+    : qualifiedName (ASTERISK_)?
+    | ONLY LP_? qualifiedName RP_?
     ;
 
 commonFuncOptItem
diff --git 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/imports/postgresql/DDLStatement.g4
 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/imports/postgresql/DDLStatement.g4
index 78bdcaf2ee8..755737adaaa 100644
--- 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/imports/postgresql/DDLStatement.g4
+++ 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/imports/postgresql/DDLStatement.g4
@@ -1034,10 +1034,10 @@ alterFunctionClauses
 
 alterPublication
     : ALTER PUBLICATION name
-    (RENAME TO name
+    ( RENAME TO name
     | OWNER TO roleSpec
     | SET definition
-    | (ADD | SET | DROP)  TABLE relationExprList)
+    | (ADD | SET | DROP) TABLE relationExprList)
     ;
 
 alterRoutine
diff --git 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/org/apache/shardingsphere/sql/parser/autogen/PostgreSQLStatementParser.g4
 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/org/apache/shardingsphere/sql/parser/autogen/PostgreSQLStatementParser.g4
index c6b9038f7a1..7091f692bf2 100644
--- 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/org/apache/shardingsphere/sql/parser/autogen/PostgreSQLStatementParser.g4
+++ 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/org/apache/shardingsphere/sql/parser/autogen/PostgreSQLStatementParser.g4
@@ -150,5 +150,6 @@ execute
     | cluster
     | alterOperator
     | createAccessMethod
+    | alterPublication
     ) SEMI_? EOF
     ;
diff --git 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/java/org/apache/shardingsphere/sql/parser/postgresql/visitor/statement/impl/PostgreSQLDDLStatementSQLVisitor.java
 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/java/org/apache/shardingsphere/sql/parser/postgresql/visitor/statement/impl/PostgreSQLDDLStatementSQLVisitor.java
index d6c95d2359f..3aff333293c 100644
--- 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/java/org/apache/shardingsphere/sql/parser/postgresql/visitor/statement/impl/PostgreSQLDDLStatementSQLVisitor.java
+++ 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/java/org/apache/shardingsphere/sql/parser/postgresql/visitor/statement/impl/PostgreSQLDDLStatementSQLVisitor.java
@@ -30,6 +30,7 @@ import 
org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.Al
 import 
org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.AlterDefinitionClauseContext;
 import 
org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.AlterDomainContext;
 import 
org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.AlterPolicyContext;
+import 
org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.AlterPublicationContext;
 import 
org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.AlterExtensionContext;
 import 
org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.AlterForeignDataWrapperContext;
 import 
org.apache.shardingsphere.sql.parser.autogen.PostgreSQLStatementParser.AlterForeignTableContext;
@@ -168,6 +169,7 @@ import 
org.apache.shardingsphere.sql.parser.sql.dialect.statement.postgresql.ddl
 import 
org.apache.shardingsphere.sql.parser.sql.dialect.statement.postgresql.ddl.PostgreSQLAlterDefaultPrivilegesStatement;
 import 
org.apache.shardingsphere.sql.parser.sql.dialect.statement.postgresql.ddl.PostgreSQLAlterDomainStatement;
 import 
org.apache.shardingsphere.sql.parser.sql.dialect.statement.postgresql.ddl.PostgreSQLAlterPolicyStatement;
+import 
org.apache.shardingsphere.sql.parser.sql.dialect.statement.postgresql.ddl.PostgreSQLAlterPublicationStatement;
 import 
org.apache.shardingsphere.sql.parser.sql.dialect.statement.postgresql.ddl.PostgreSQLAlterExtensionStatement;
 import 
org.apache.shardingsphere.sql.parser.sql.dialect.statement.postgresql.ddl.PostgreSQLAlterForeignDataWrapperStatement;
 import 
org.apache.shardingsphere.sql.parser.sql.dialect.statement.postgresql.ddl.PostgreSQLAlterForeignTableStatement;
@@ -436,6 +438,11 @@ public final class PostgreSQLDDLStatementSQLVisitor 
extends PostgreSQLStatementS
         return new PostgreSQLAlterPolicyStatement();
     }
     
+    @Override
+    public ASTNode visitAlterPublication(final AlterPublicationContext ctx) {
+        return new PostgreSQLAlterPublicationStatement();
+    }
+    
     @Override
     public ASTNode visitRenameTableSpecification(final 
RenameTableSpecificationContext ctx) {
         RenameTableDefinitionSegment result = new 
RenameTableDefinitionSegment(ctx.start.getStartIndex(), 
ctx.stop.getStopIndex());
diff --git 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-engine/src/main/java/org/apache/shardingsphere/sql/parser/core/database/visitor/SQLVisitorRule.java
 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-engine/src/main/java/org/apache/shardingsphere/sql/parser/core/database/visitor/SQLVisitorRule.java
index 06877c30665..f1067ac90da 100644
--- 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-engine/src/main/java/org/apache/shardingsphere/sql/parser/core/database/visitor/SQLVisitorRule.java
+++ 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-engine/src/main/java/org/apache/shardingsphere/sql/parser/core/database/visitor/SQLVisitorRule.java
@@ -86,6 +86,8 @@ public enum SQLVisitorRule {
     
     CREATE_PUBLICATION("CreatePublication", SQLStatementType.DDL),
     
+    ALTER_PUBLICATION("AlterPublication", SQLStatementType.DDL),
+    
     ALTER_PROCEDURE("AlterProcedure", SQLStatementType.DDL),
     
     ALTER_STATEMENT("AlterStatement", SQLStatementType.DDL),
diff --git 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/main/java/org/apache/shardingsphere/sql/parser/sql/common/statement/ddl/AlterPublicationStatement.java
 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/main/java/org/apache/shardingsphere/sql/parser/sql/common/statement/ddl/AlterPublicationStatement.java
new file mode 100644
index 00000000000..87ea05e872e
--- /dev/null
+++ 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/main/java/org/apache/shardingsphere/sql/parser/sql/common/statement/ddl/AlterPublicationStatement.java
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.shardingsphere.sql.parser.sql.common.statement.ddl;
+
+import 
org.apache.shardingsphere.sql.parser.sql.common.statement.AbstractSQLStatement;
+
+/**
+ * Alter publication statement.
+ */
+public abstract class AlterPublicationStatement extends AbstractSQLStatement 
implements DDLStatement {
+}
diff --git 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/main/java/org/apache/shardingsphere/sql/parser/sql/dialect/statement/postgresql/ddl/PostgreSQLAlterPublicationStatement.java
 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/main/java/org/apache/shardingsphere/sql/parser/sql/dialect/statement/postgresql/ddl/PostgreSQLAlterPublicationStatement.java
new file mode 100644
index 00000000000..9cb4673cc65
--- /dev/null
+++ 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/main/java/org/apache/shardingsphere/sql/parser/sql/dialect/statement/postgresql/ddl/PostgreSQLAlterPublicationStatement.java
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package 
org.apache.shardingsphere.sql.parser.sql.dialect.statement.postgresql.ddl;
+
+import lombok.ToString;
+import 
org.apache.shardingsphere.sql.parser.sql.common.statement.ddl.AlterPublicationStatement;
+import 
org.apache.shardingsphere.sql.parser.sql.dialect.statement.postgresql.PostgreSQLStatement;
+
+/**
+ * PostgreSQL alter publication statement.
+ */
+@ToString
+public final class PostgreSQLAlterPublicationStatement extends 
AlterPublicationStatement implements PostgreSQLStatement {
+}
diff --git 
a/shardingsphere-test/shardingsphere-parser-test/src/main/java/org/apache/shardingsphere/test/sql/parser/parameterized/jaxb/cases/domain/SQLParserTestCases.java
 
b/shardingsphere-test/shardingsphere-parser-test/src/main/java/org/apache/shardingsphere/test/sql/parser/parameterized/jaxb/cases/domain/SQLParserTestCases.java
index 0a00083f369..342285af975 100644
--- 
a/shardingsphere-test/shardingsphere-parser-test/src/main/java/org/apache/shardingsphere/test/sql/parser/parameterized/jaxb/cases/domain/SQLParserTestCases.java
+++ 
b/shardingsphere-test/shardingsphere-parser-test/src/main/java/org/apache/shardingsphere/test/sql/parser/parameterized/jaxb/cases/domain/SQLParserTestCases.java
@@ -115,6 +115,7 @@ import 
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.cases.domain
 import 
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.cases.domain.statement.ddl.AlterOutlineStatementTestCase;
 import 
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.cases.domain.statement.ddl.AlterPackageStatementTestCase;
 import 
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.cases.domain.statement.ddl.AlterProcedureStatementTestCase;
+import 
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.cases.domain.statement.ddl.AlterPublicationStatementTestCase;
 import 
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.cases.domain.statement.ddl.AlterRuleStatementTestCase;
 import 
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.cases.domain.statement.ddl.AlterPolicyStatementTestCase;
 import 
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.cases.domain.statement.ddl.AlterSchemaStatementTestCase;
@@ -592,6 +593,9 @@ public final class SQLParserTestCases {
     @XmlElement(name = "alter-procedure")
     private final List<AlterProcedureStatementTestCase> 
alterProcedureTestCases = new LinkedList<>();
     
+    @XmlElement(name = "alter-publication")
+    private final List<AlterPublicationStatementTestCase> 
alterPublicationTestCases = new LinkedList<>();
+    
     @XmlElement(name = "alter-policy")
     private final List<AlterPolicyStatementTestCase> alterPolicyTestCases = 
new LinkedList<>();
     
@@ -1542,6 +1546,7 @@ public final class SQLParserTestCases {
         putAll(alterDirectoryTestCases, result);
         putAll(alterSystemTestCases, result);
         putAll(alterProcedureTestCases, result);
+        putAll(alterPublicationTestCases, result);
         putAll(alterPolicyTestCases, result);
         putAll(alterDatabaseTestCases, result);
         putAll(alterDimensionTestCases, result);
diff --git 
a/shardingsphere-test/shardingsphere-parser-test/src/main/java/org/apache/shardingsphere/test/sql/parser/parameterized/jaxb/cases/domain/statement/ddl/AlterPublicationStatementTestCase.java
 
b/shardingsphere-test/shardingsphere-parser-test/src/main/java/org/apache/shardingsphere/test/sql/parser/parameterized/jaxb/cases/domain/statement/ddl/AlterPublicationStatementTestCase.java
new file mode 100644
index 00000000000..2282f669740
--- /dev/null
+++ 
b/shardingsphere-test/shardingsphere-parser-test/src/main/java/org/apache/shardingsphere/test/sql/parser/parameterized/jaxb/cases/domain/statement/ddl/AlterPublicationStatementTestCase.java
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package 
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.cases.domain.statement.ddl;
+
+import 
org.apache.shardingsphere.test.sql.parser.parameterized.jaxb.cases.domain.statement.SQLParserTestCase;
+
+/**
+ * Alter publication statement test case.
+ */
+public final class AlterPublicationStatementTestCase extends SQLParserTestCase 
{
+}
diff --git 
a/shardingsphere-test/shardingsphere-parser-test/src/main/resources/case/ddl/alter-publication.xml
 
b/shardingsphere-test/shardingsphere-parser-test/src/main/resources/case/ddl/alter-publication.xml
new file mode 100644
index 00000000000..e2b88375233
--- /dev/null
+++ 
b/shardingsphere-test/shardingsphere-parser-test/src/main/resources/case/ddl/alter-publication.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<sql-parser-test-cases>
+    <alter-publication sql-case-id="alter_publication_rename" />
+    <alter-publication sql-case-id="alter_publication_owner" />
+    <alter-publication sql-case-id="alter_publication_set_table" />
+    <alter-publication sql-case-id="alter_publication_add_table" />
+    <alter-publication sql-case-id="alter_publication_drop_table" />
+    <alter-publication sql-case-id="alter_publication_set_definition" />
+</sql-parser-test-cases>
diff --git 
a/shardingsphere-test/shardingsphere-parser-test/src/main/resources/sql/supported/ddl/alter-publication.xml
 
b/shardingsphere-test/shardingsphere-parser-test/src/main/resources/sql/supported/ddl/alter-publication.xml
new file mode 100644
index 00000000000..5abf71c3fed
--- /dev/null
+++ 
b/shardingsphere-test/shardingsphere-parser-test/src/main/resources/sql/supported/ddl/alter-publication.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<sql-cases>
+    <sql-case id="alter_publication_rename" value="ALTER PUBLICATION 
old_publication RENAME TO new_publication;" db-types="PostgreSQL" />
+    <sql-case id="alter_publication_owner" value="ALTER PUBLICATION 
new_publication OWNER TO CURRENT_ROLE;" db-types="PostgreSQL" />
+    <sql-case id="alter_publication_set_table" value="ALTER PUBLICATION 
mypublication SET TABLE users, departments;" db-types="PostgreSQL" />
+    <sql-case id="alter_publication_add_table" value="ALTER PUBLICATION 
mypublication ADD TABLE stores, cities;" db-types="PostgreSQL" />
+    <sql-case id="alter_publication_drop_table" value="ALTER PUBLICATION 
mypublication DROP TABLE users;" db-types="PostgreSQL" />
+    <sql-case id="alter_publication_set_definition" value="ALTER PUBLICATION 
noinsert SET (publish = 'update, delete');" db-types="PostgreSQL" />
+</sql-cases>
diff --git 
a/shardingsphere-test/shardingsphere-parser-test/src/main/resources/sql/unsupported/unsupported.xml
 
b/shardingsphere-test/shardingsphere-parser-test/src/main/resources/sql/unsupported/unsupported.xml
index 2bb06a73fd3..213d49fbc2c 100644
--- 
a/shardingsphere-test/shardingsphere-parser-test/src/main/resources/sql/unsupported/unsupported.xml
+++ 
b/shardingsphere-test/shardingsphere-parser-test/src/main/resources/sql/unsupported/unsupported.xml
@@ -3403,54 +3403,6 @@
     <sql-case id="alter_by_postgresql_source_test_case214" value="ALTER 
OPERATOR FAMILY alt_opf7 USING btree DROP OPERATOR 1 (int4, int2, int8);" 
db-types="PostgreSQL" />
     <sql-case id="alter_by_postgresql_source_test_case215" value="ALTER 
OPERATOR FAMILY alt_opf8 USING btree ADD OPERATOR 1 &lt; (int4, int4);" 
db-types="PostgreSQL" />
     <sql-case id="alter_by_postgresql_source_test_case216" value="ALTER 
OPERATOR FAMILY alt_opf9 USING gist ADD OPERATOR 1 &lt; (int4, int4) FOR ORDER 
BY float_ops;" db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case234" value="ALTER 
PUBLICATION testpib_ins_trunct ADD TABLE pub_test.testpub_nopk, testpub_tbl1;" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case235" value="ALTER 
PUBLICATION testpub1_forschema ADD ALL TABLES IN SCHEMA non_existent_schema;" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case236" value="ALTER 
PUBLICATION testpub1_forschema ADD ALL TABLES IN SCHEMA pub_test1;" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case237" value="ALTER 
PUBLICATION testpub1_forschema ADD ALL TABLES IN SCHEMA pub_test2;" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case238" value="ALTER 
PUBLICATION testpub1_forschema DROP ALL TABLES IN SCHEMA non_existent_schema;" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case239" value="ALTER 
PUBLICATION testpub1_forschema DROP ALL TABLES IN SCHEMA pub_test1;" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case240" value="ALTER 
PUBLICATION testpub1_forschema DROP ALL TABLES IN SCHEMA pub_test1;" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case241" value="ALTER 
PUBLICATION testpub1_forschema DROP ALL TABLES IN SCHEMA pub_test2;" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case242" value="ALTER 
PUBLICATION testpub1_forschema DROP ALL TABLES IN SCHEMA pub_test2;" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case243" value="ALTER 
PUBLICATION testpub1_forschema SET ALL TABLES IN SCHEMA non_existent_schema;" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case244" value="ALTER 
PUBLICATION testpub1_forschema SET ALL TABLES IN SCHEMA pub_test1, pub_test1;" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case245" value="ALTER 
PUBLICATION testpub1_forschema SET ALL TABLES IN SCHEMA pub_test1, pub_test2;" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case246" value="ALTER 
PUBLICATION testpub1_forschema SET ALL TABLES IN SCHEMA pub_test1;" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case247" value="ALTER 
PUBLICATION testpub2 ADD TABLE testpub_tbl1;" db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case248" value="ALTER 
PUBLICATION testpub2 ADD TABLE testpub_tbl1;" db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case249" value="ALTER 
PUBLICATION testpub2_forschema DROP ALL TABLES IN SCHEMA pub_test1;" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case250" value="ALTER 
PUBLICATION testpub3 ADD ALL TABLES IN SCHEMA pub_test;" db-types="PostgreSQL" 
/>
-    <sql-case id="alter_by_postgresql_source_test_case251" value="ALTER 
PUBLICATION testpub3_forschema SET ALL TABLES IN SCHEMA pub_test1;" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case252" value="ALTER 
PUBLICATION testpub_default ADD TABLE pub_test.testpub_nopk;" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case253" value="ALTER 
PUBLICATION testpub_default ADD TABLE testpub_tbl1;" db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case254" value="ALTER 
PUBLICATION testpub_default ADD TABLE testpub_view;" db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case255" value="ALTER 
PUBLICATION testpub_default DROP TABLE pub_test.testpub_nopk;" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case256" value="ALTER 
PUBLICATION testpub_default DROP TABLE testpub_tbl1, pub_test.testpub_nopk;" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case257" value="ALTER 
PUBLICATION testpub_default OWNER TO regress_publication_user2;" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case258" value="ALTER 
PUBLICATION testpub_default RENAME TO testpub_dummy;" db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case259" value="ALTER 
PUBLICATION testpub_default RENAME TO testpub_foo;" db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case260" value="ALTER 
PUBLICATION testpub_default SET (publish = &apos;insert, update, 
delete&apos;);" db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case261" value="ALTER 
PUBLICATION testpub_default SET (publish = update);" db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case262" value="ALTER 
PUBLICATION testpub_default SET TABLE testpub_tbl1;" db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case263" value="ALTER 
PUBLICATION testpub_foo RENAME TO testpub_default;" db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case264" value="ALTER 
PUBLICATION testpub_foralltables ADD ALL TABLES IN SCHEMA pub_test;" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case265" value="ALTER 
PUBLICATION testpub_foralltables ADD TABLE testpub_tbl2;" db-types="PostgreSQL" 
/>
-    <sql-case id="alter_by_postgresql_source_test_case266" value="ALTER 
PUBLICATION testpub_foralltables DROP ALL TABLES IN SCHEMA pub_test;" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case267" value="ALTER 
PUBLICATION testpub_foralltables DROP TABLE testpub_tbl2;" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case268" value="ALTER 
PUBLICATION testpub_foralltables SET (publish = &apos;insert, update&apos;);" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case269" value="ALTER 
PUBLICATION testpub_foralltables SET ALL TABLES IN SCHEMA pub_test;" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case270" value="ALTER 
PUBLICATION testpub_foralltables SET TABLE pub_test.testpub_nopk;" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case271" value="ALTER 
PUBLICATION testpub_forparted ADD TABLE testpub_parted;" db-types="PostgreSQL" 
/>
-    <sql-case id="alter_by_postgresql_source_test_case272" value="ALTER 
PUBLICATION testpub_forparted DROP TABLE testpub_parted;" db-types="PostgreSQL" 
/>
-    <sql-case id="alter_by_postgresql_source_test_case273" value="ALTER 
PUBLICATION testpub_forparted SET (publish_via_partition_root = true);" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case274" value="ALTER 
PUBLICATION testpub_forparted1 SET (publish=&apos;insert&apos;);" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case275" value="ALTER 
PUBLICATION testpub_forschema ADD TABLE pub_test.testpub_nopk;" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case276" value="ALTER 
PUBLICATION testpub_forschema DROP TABLE pub_test.testpub_nopk;" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case277" value="ALTER 
PUBLICATION testpub_forschema SET TABLE pub_test.testpub_nopk;" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case278" value="ALTER 
PUBLICATION testpub_fortable ADD ALL TABLES IN SCHEMA pub_test;" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case279" value="ALTER 
PUBLICATION testpub_fortable DROP ALL TABLES IN SCHEMA pub_test;" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case280" value="ALTER 
PUBLICATION testpub_fortable SET ALL TABLES IN SCHEMA pub_test;" 
db-types="PostgreSQL" />
-    <sql-case id="alter_by_postgresql_source_test_case281" value="ALTER 
PUBLICATION testpub_fortbl ADD TABLE testpub_tbl1;" db-types="PostgreSQL" />
     <sql-case id="alter_by_postgresql_source_test_case282" value="ALTER 
ROUTINE cp_testfunc1(int) RENAME TO cp_testfunc1a;" db-types="PostgreSQL" />
     <sql-case id="alter_by_postgresql_source_test_case283" value="ALTER 
ROUTINE cp_testfunc1a RENAME TO cp_testfunc1;" db-types="PostgreSQL" />
     <sql-case id="alter_by_postgresql_source_test_case284" value="ALTER 
ROUTINE ptest1(text) RENAME TO ptest1a;" db-types="PostgreSQL" />

Reply via email to