Skip to content

Commit

Permalink
Change size utility functions to STRICT
Browse files Browse the repository at this point in the history
Change hypertable_relation_size, hypertable_relation_size_pretty,
chunk_relation_size, chunk_relation_size_pretty, indexes_relation_size,
indexes_relation_size_pretty, partitioning_column_to_pretty to
STRICT
  • Loading branch information
svenklemm authored and RobAtticus committed Dec 4, 2018
1 parent 2e7cc4b commit cab079e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions sql/size_utils.sql
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RETURNS TABLE (table_bytes BIGINT,
index_bytes BIGINT,
toast_bytes BIGINT,
total_bytes BIGINT
) LANGUAGE PLPGSQL STABLE
) LANGUAGE PLPGSQL STABLE STRICT
AS
$BODY$
DECLARE
Expand Down Expand Up @@ -102,7 +102,7 @@ $BODY$;
CREATE OR REPLACE FUNCTION _timescaledb_internal.partitioning_column_to_pretty(
d _timescaledb_catalog.dimension
)
RETURNS TEXT LANGUAGE PLPGSQL STABLE AS
RETURNS TEXT LANGUAGE PLPGSQL STABLE STRICT AS
$BODY$
DECLARE
BEGIN
Expand Down Expand Up @@ -133,7 +133,7 @@ CREATE OR REPLACE FUNCTION hypertable_relation_size_pretty(
RETURNS TABLE (table_size TEXT,
index_size TEXT,
toast_size TEXT,
total_size TEXT) LANGUAGE PLPGSQL STABLE
total_size TEXT) LANGUAGE PLPGSQL STABLE STRICT
AS
$BODY$
DECLARE
Expand Down Expand Up @@ -182,7 +182,7 @@ RETURNS TABLE (chunk_id INT,
index_bytes BIGINT,
toast_bytes BIGINT,
total_bytes BIGINT)
LANGUAGE PLPGSQL STABLE
LANGUAGE PLPGSQL STABLE STRICT
AS
$BODY$
DECLARE
Expand Down Expand Up @@ -281,7 +281,7 @@ RETURNS TABLE (chunk_id INT,
toast_size TEXT,
total_size TEXT
)
LANGUAGE PLPGSQL STABLE
LANGUAGE PLPGSQL STABLE STRICT
AS
$BODY$
DECLARE
Expand Down Expand Up @@ -363,7 +363,7 @@ CREATE OR REPLACE FUNCTION indexes_relation_size(
)
RETURNS TABLE (index_name TEXT,
total_bytes BIGINT)
LANGUAGE PLPGSQL STABLE
LANGUAGE PLPGSQL STABLE STRICT
AS
$BODY$
<<main>>
Expand Down Expand Up @@ -410,7 +410,7 @@ CREATE OR REPLACE FUNCTION indexes_relation_size_pretty(
main_table REGCLASS
)
RETURNS TABLE (index_name TEXT,
total_size TEXT) LANGUAGE PLPGSQL STABLE
total_size TEXT) LANGUAGE PLPGSQL STABLE STRICT
AS
$BODY$
BEGIN
Expand Down

0 comments on commit cab079e

Please sign in to comment.