474de01757
The scheme is changed from table_ovN to _vovw_N_table for lower collision probability. Also future naming changes will be easier by using the functions _CDB_OverviewTableDiscriminator, _CDB_OverviewTableName, _CDB_IsOverviewTableOf, etc.
41 lines
1.4 KiB
Plaintext
41 lines
1.4 KiB
Plaintext
SET
|
|
CREATE TABLE
|
|
INSERT 0 1114
|
|
CREATE TABLE
|
|
INSERT 0 1114
|
|
|
|
|
|
|
|
{_vovw_5_base_bare_t,_vovw_4_base_bare_t,_vovw_3_base_bare_t,_vovw_2_base_bare_t,_vovw_1_base_bare_t,_vovw_0_base_bare_t}
|
|
125
|
|
number,int_number,name,start
|
|
AVG(number)::double precision AS number,AVG(int_number)::integer AS int_number,CASE count(*) WHEN 1 THEN string_agg(name,'/') ELSE '*' END::text AS name,CASE count(*) WHEN 1 THEN MIN(start) ELSE NULL END::date AS start
|
|
AVG(tab.number)::double precision AS number,AVG(tab.int_number)::integer AS int_number,CASE count(*) WHEN 1 THEN string_agg(tab.name,'/') ELSE '*' END::text AS name,CASE count(*) WHEN 1 THEN MIN(tab.start) ELSE NULL END::date AS start
|
|
{_vovw_5_base_t,_vovw_4_base_t,_vovw_3_base_t,_vovw_2_base_t,_vovw_1_base_t,_vovw_0_base_t}
|
|
125
|
|
(base_t,0,_vovw_0_base_t)
|
|
(base_t,1,_vovw_1_base_t)
|
|
(base_t,2,_vovw_2_base_t)
|
|
(base_t,3,_vovw_3_base_t)
|
|
(base_t,4,_vovw_4_base_t)
|
|
(base_t,5,_vovw_5_base_t)
|
|
(base_bare_t,0,_vovw_0_base_bare_t)
|
|
(base_bare_t,1,_vovw_1_base_bare_t)
|
|
(base_bare_t,2,_vovw_2_base_bare_t)
|
|
(base_bare_t,3,_vovw_3_base_bare_t)
|
|
(base_bare_t,4,_vovw_4_base_bare_t)
|
|
(base_bare_t,5,_vovw_5_base_bare_t)
|
|
(base_t,0,_vovw_0_base_t)
|
|
(base_t,1,_vovw_1_base_t)
|
|
(base_t,2,_vovw_2_base_t)
|
|
(base_t,3,_vovw_3_base_t)
|
|
(base_t,4,_vovw_4_base_t)
|
|
(base_t,5,_vovw_5_base_t)
|
|
|
|
|
|
ERROR: relation "_vovw_5_base_t" does not exist
|
|
LINE 1: SELECT count(*) FROM _vovw_5_base_t;
|
|
^
|
|
DROP TABLE
|
|
DROP TABLE
|