云数据库 GAUSSDB-案例:调整查询重写GUC参数rewrite_rule:案例环境准备

时间:2024-11-13 14:46:46

案例环境准备

为了便于规则的使用场景演示,需准备建表语句如下:

--清理环境
DROP SCHEMA IF EXISTS rewrite_rule_guc_test CASCADE;
CREATE SCHEMA rewrite_rule_guc_test;
SET current_schema=rewrite_rule_guc_test;
--创建测试表
CREATE TABLE t(c1 INT, c2 INT, c3 INT, c4 INT);
CREATE TABLE t1(c1 INT, c2 INT, c3 INT, c4 INT);
CREATE TABLE t2(c1 INT, c2 INT, c3 INT, c4 INT);
support.huaweicloud.com/centralized-devg-v8-gaussdb/gaussdb-42-0321.html