Exclude overviews from user data size

Fixes #261

Some internal functions from the Overviews module
have been moved to a separate file because they're now
used from Quaota function.
This commit is contained in:
Javier Goizueta
2016-06-07 13:20:55 +02:00
parent 58fd5d4060
commit 1f01ecae30
7 changed files with 179 additions and 174 deletions

View File

@@ -35,7 +35,9 @@ BEGIN
table_cat AS (
SELECT
table_name,
EXISTS(select * from raster_tables where o_table_name = table_name) AS is_overview,
EXISTS(select * from raster_tables where o_table_name = table_name)
OR table_name SIMILAR TO _CDB_OverviewTableDiscriminator() || '[\w\d]*'
AS is_overview,
EXISTS(SELECT * FROM raster_tables WHERE r_table_name = table_name) AS is_raster
FROM user_tables
),