Overload CDB_Overviews to accept either a single table or an array
The result of CDB_Overviews has been expandend with a base_table column
This commit is contained in:
@@ -13,6 +13,24 @@ AVG(number)::double precision AS number,AVG(int_number)::integer AS int_number,C
|
||||
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
|
||||
{base_t_ov5,base_t_ov4,base_t_ov3,base_t_ov2,base_t_ov1,base_t_ov0}
|
||||
125
|
||||
(base_t,0,base_t_ov0)
|
||||
(base_t,1,base_t_ov1)
|
||||
(base_t,2,base_t_ov2)
|
||||
(base_t,3,base_t_ov3)
|
||||
(base_t,4,base_t_ov4)
|
||||
(base_t,5,base_t_ov5)
|
||||
(base_bare_t,0,base_bare_t_ov0)
|
||||
(base_bare_t,1,base_bare_t_ov1)
|
||||
(base_bare_t,2,base_bare_t_ov2)
|
||||
(base_bare_t,3,base_bare_t_ov3)
|
||||
(base_bare_t,4,base_bare_t_ov4)
|
||||
(base_bare_t,5,base_bare_t_ov5)
|
||||
(base_t,0,base_t_ov0)
|
||||
(base_t,1,base_t_ov1)
|
||||
(base_t,2,base_t_ov2)
|
||||
(base_t,3,base_t_ov3)
|
||||
(base_t,4,base_t_ov4)
|
||||
(base_t,5,base_t_ov5)
|
||||
|
||||
|
||||
ERROR: relation "base_t_ov5" does not exist
|
||||
|
||||
Reference in New Issue
Block a user