We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3c36220 + deb9c77 commit a075a0eCopy full SHA for a075a0e
range.sql
@@ -79,10 +79,6 @@ BEGIN
79
EXECUTE pg_catalog.format('SELECT count(*), max(%s) FROM %s', expression, parent_relid)
80
INTO rows_count, max_value;
81
82
- IF rows_count = 0 THEN
83
- RAISE EXCEPTION 'cannot determine partitions count for empty table';
84
- END IF;
85
-
86
p_count := 0;
87
WHILE cur_value <= max_value
88
LOOP
@@ -172,10 +168,6 @@ BEGIN
172
168
173
169
174
170
175
176
177
178
179
171
IF max_value IS NULL THEN
180
RAISE EXCEPTION 'expression "%" can return NULL values', expression;
181
END IF;
0 commit comments