Skip to content

Commit 215a4f2

Browse files
encimajfroche
authored andcommitted
add partman to local tests. remove from initial schema
1 parent d40cc8b commit 215a4f2

File tree

3 files changed

+133
-25
lines changed

3 files changed

+133
-25
lines changed

nix/tests/expected/pg_partman.out

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
CREATE SCHEMA IF NOT EXISTS partman_test;
2+
CREATE TABLE partman_test.time_taptest_table
3+
(col1 int,
4+
col2 text default 'stuff',
5+
col3 timestamptz NOT NULL DEFAULT now())
6+
PARTITION BY RANGE (col3);
7+
CREATE INDEX ON partman_test.time_taptest_table (col3);
8+
CREATE TABLE partman_test.time_taptest_table_template (LIKE partman_test.time_taptest_table);
9+
ALTER TABLE partman_test.time_taptest_table_template ADD PRIMARY KEY (col1);
10+
SELECT partman.create_parent(
11+
p_parent_table := 'partman_test.time_taptest_table'
12+
, p_control := 'col3'
13+
, p_interval := '1 day'
14+
, p_template_table := 'partman_test.time_taptest_table_template'
15+
);
16+
create_parent
17+
---------------
18+
t
19+
(1 row)
20+

0 commit comments

Comments
 (0)