Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a075a0e

Browse files
authored
Merge pull request #1 from Hunterk95/Hunterk95-patch-1
Update range.sql
2 parents 3c36220 + deb9c77 commit a075a0e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

range.sql

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,6 @@ BEGIN
7979
EXECUTE pg_catalog.format('SELECT count(*), max(%s) FROM %s', expression, parent_relid)
8080
INTO rows_count, max_value;
8181

82-
IF rows_count = 0 THEN
83-
RAISE EXCEPTION 'cannot determine partitions count for empty table';
84-
END IF;
85-
8682
p_count := 0;
8783
WHILE cur_value <= max_value
8884
LOOP
@@ -172,10 +168,6 @@ BEGIN
172168
EXECUTE pg_catalog.format('SELECT count(*), max(%s) FROM %s', expression, parent_relid)
173169
INTO rows_count, max_value;
174170

175-
IF rows_count = 0 THEN
176-
RAISE EXCEPTION 'cannot determine partitions count for empty table';
177-
END IF;
178-
179171
IF max_value IS NULL THEN
180172
RAISE EXCEPTION 'expression "%" can return NULL values', expression;
181173
END IF;

0 commit comments

Comments
 (0)