Skip to content

Commit 58a3264

Browse files
authored
Merge pull request #19 from saaros/redundant_range_partition_check
range.sql: drop redundant check for existing tables
2 parents 754e320 + 5d7d83d commit 58a3264

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

range.sql

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -446,12 +446,6 @@ BEGIN
446446
EXIT WHEN v_child_relname_exists = 0;
447447
END LOOP;
448448

449-
/* Skip existing partitions */
450-
IF EXISTS (SELECT * FROM pg_tables WHERE tablename = v_child_relname) THEN
451-
RAISE WARNING 'Relation % already exists, skipping...', v_child_relname;
452-
RETURN NULL;
453-
END IF;
454-
455449
EXECUTE format('CREATE TABLE %s (LIKE %s INCLUDING ALL)'
456450
, v_child_relname
457451
, p_parent);

0 commit comments

Comments
 (0)