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.
1 parent d40cc8b commit 215a4f2Copy full SHA for 215a4f2
nix/tests/expected/pg_partman.out
@@ -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