Commit 4447f0bc authored by Tom Lane's avatar Tom Lane

Use less-generic names in matview.sql.

The original coding of this test used table and view names like "t",
"tv", "foo", etc.  This tended to interfere with doing simple manual
tests in the regression database; not to mention that it posed a
considerable risk of conflict with other regression test scripts.
Prefix these names with "mvtest_" to avoid such conflicts.

Also, change transiently-created role name to be "regress_xxx" per
discussions about being careful with regression-test role creation.
parent 8f1911d5
This diff is collapsed.
...@@ -1289,6 +1289,14 @@ iexit| SELECT ih.name, ...@@ -1289,6 +1289,14 @@ iexit| SELECT ih.name,
FROM ihighway ih, FROM ihighway ih,
ramp r ramp r
WHERE (ih.thepath ## r.thepath); WHERE (ih.thepath ## r.thepath);
mvtest_tv| SELECT mvtest_t.type,
sum(mvtest_t.amt) AS totamt
FROM mvtest_t
GROUP BY mvtest_t.type;
mvtest_tvv| SELECT sum(mvtest_tv.totamt) AS grandtot
FROM mvtest_tv;
mvtest_tvvmv| SELECT mvtest_tvvm.grandtot
FROM mvtest_tvvm;
pg_available_extension_versions| SELECT e.name, pg_available_extension_versions| SELECT e.name,
e.version, e.version,
(x.extname IS NOT NULL) AS installed, (x.extname IS NOT NULL) AS installed,
...@@ -2251,14 +2259,6 @@ toyemp| SELECT emp.name, ...@@ -2251,14 +2259,6 @@ toyemp| SELECT emp.name,
emp.location, emp.location,
(12 * emp.salary) AS annualsal (12 * emp.salary) AS annualsal
FROM emp; FROM emp;
tv| SELECT t.type,
sum(t.amt) AS totamt
FROM t
GROUP BY t.type;
tvv| SELECT sum(tv.totamt) AS grandtot
FROM tv;
tvvmv| SELECT tvvm.grandtot
FROM tvvm;
SELECT tablename, rulename, definition FROM pg_rules SELECT tablename, rulename, definition FROM pg_rules
ORDER BY tablename, rulename; ORDER BY tablename, rulename;
pg_settings|pg_settings_n|CREATE RULE pg_settings_n AS pg_settings|pg_settings_n|CREATE RULE pg_settings_n AS
......
...@@ -588,7 +588,6 @@ SELECT user_relns() AS user_relns ...@@ -588,7 +588,6 @@ SELECT user_relns() AS user_relns
arrtest arrtest
b b
b_star b_star
bb
box_tbl box_tbl
bprime bprime
brinopers brinopers
...@@ -648,6 +647,16 @@ SELECT user_relns() AS user_relns ...@@ -648,6 +647,16 @@ SELECT user_relns() AS user_relns
lseg_tbl lseg_tbl
main_table main_table
money_data money_data
mvtest_bb
mvtest_t
mvtest_tm
mvtest_tmm
mvtest_tv
mvtest_tvm
mvtest_tvmm
mvtest_tvv
mvtest_tvvm
mvtest_tvvmv
num_data num_data
num_exp_add num_exp_add
num_exp_div num_exp_div
...@@ -682,7 +691,6 @@ SELECT user_relns() AS user_relns ...@@ -682,7 +691,6 @@ SELECT user_relns() AS user_relns
stud_emp stud_emp
student student
subselect_tbl subselect_tbl
t
tenk1 tenk1
tenk2 tenk2
test_range_excl test_range_excl
...@@ -699,15 +707,7 @@ SELECT user_relns() AS user_relns ...@@ -699,15 +707,7 @@ SELECT user_relns() AS user_relns
timestamptz_tbl timestamptz_tbl
timetz_tbl timetz_tbl
tinterval_tbl tinterval_tbl
tm
tmm
toyemp toyemp
tv
tvm
tvmm
tvv
tvvm
tvvmv
varchar_tbl varchar_tbl
xacttest xacttest
(132 rows) (132 rows)
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment