|
| 1 | +-- |
| 2 | +-- Name: autovacuum_run_stats_35d; Type: TABLE; Schema: public; Owner: - |
| 3 | +-- |
| 4 | + |
| 5 | +CREATE TABLE public.autovacuum_run_stats_35d ( |
| 6 | + autovacuum_run_stats_id uuid DEFAULT public.gen_random_uuid() NOT NULL, |
| 7 | + server_id uuid, |
| 8 | + schema_table_id bigint, |
| 9 | + occurred_at timestamp with time zone NOT NULL |
| 10 | +) |
| 11 | +PARTITION BY RANGE (occurred_at); |
| 12 | + |
| 13 | +-- |
| 14 | +-- Name: index_autovacuum_run_stats_35d_on_schema_table_id_occurred_at; Type: INDEX |
| 15 | +-- |
| 16 | + |
| 17 | +CREATE INDEX index_autovacuum_run_stats_35d_on_schema_table_id_occurred_at ON public.autovacuum_run_stats_35d USING btree (schema_table_id, occurred_at); |
| 18 | + |
| 19 | +-- |
| 20 | +-- Name: index_autovacuum_run_stats_35d_on_server_id_and_occurred_at; Type: INDEX |
| 21 | +-- |
| 22 | + |
| 23 | +CREATE INDEX index_autovacuum_run_stats_35d_on_server_id_and_occurred_at ON public.autovacuum_run_stats_35d USING btree (server_id, occurred_at); |
| 24 | + |
| 25 | +-- |
| 26 | +-- Name: autovacuum_run_stats_35d_20241026; Type: TABLE; Schema: public; Owner: - |
| 27 | +-- |
| 28 | + |
| 29 | +CREATE TABLE public.autovacuum_run_stats_35d_20241026 ( |
| 30 | + autovacuum_run_stats_id uuid DEFAULT public.gen_random_uuid() NOT NULL, |
| 31 | + server_id uuid, |
| 32 | + schema_table_id bigint, |
| 33 | + occurred_at timestamp with time zone NOT NULL |
| 34 | +); |
| 35 | + |
| 36 | +-- |
| 37 | +-- Name: autovacuum_run_stats_35d_20241026; Type: TABLE ATTACH; Schema: public; Owner: - |
| 38 | +-- |
| 39 | + |
| 40 | +ALTER TABLE ONLY public.autovacuum_run_stats_35d ATTACH PARTITION public.autovacuum_run_stats_35d_20241026 FOR VALUES FROM ('2024-10-25 19:00:00-05') TO ('2024-10-26 19:00:00-05'); |
| 41 | + |
| 42 | +-- |
| 43 | +-- Name: autovacuum_run_stats_35d_20241026 autovacuum_run_stats_35d_20241026_pkey; Type: CONSTRAINT; Schema: public; Owner: - |
| 44 | +-- |
| 45 | + |
| 46 | +ALTER TABLE ONLY public.autovacuum_run_stats_35d_20241026 |
| 47 | + ADD CONSTRAINT autovacuum_run_stats_35d_20241026_pkey PRIMARY KEY (autovacuum_run_stats_id); |
| 48 | + |
| 49 | +-- |
| 50 | +-- Name: autovacuum_run_stats_35d_20241026_server_id_occurred_at_idx; Type: INDEX; Schema: public; Owner: - |
| 51 | +-- |
| 52 | + |
| 53 | +CREATE INDEX autovacuum_run_stats_35d_20241026_server_id_occurred_at_idx ON public.autovacuum_run_stats_35d_20241026 USING btree (server_id, occurred_at); |
| 54 | + |
| 55 | +-- |
| 56 | +-- Name: autovacuum_run_stats_35d_2024_schema_table_id_occurred_at_idx25; Type: INDEX; Schema: public; Owner: - |
| 57 | +-- |
| 58 | + |
| 59 | +CREATE INDEX autovacuum_run_stats_35d_2024_schema_table_id_occurred_at_idx25 ON public.autovacuum_run_stats_35d_20241026 USING btree (schema_table_id, occurred_at); |
| 60 | + |
| 61 | +-- |
| 62 | +-- Name: autovacuum_run_stats_35d_20241026_server_id_occurred_at_idx; Type: INDEX ATTACH; Schema: public; Owner: - |
| 63 | +-- |
| 64 | + |
| 65 | +ALTER INDEX public.index_autovacuum_run_stats_35d_on_server_id_and_occurred_at ATTACH PARTITION public.autovacuum_run_stats_35d_20241026_server_id_occurred_at_idx; |
| 66 | + |
| 67 | +-- |
| 68 | +-- Name: schema_table_infos_35d; Type: TABLE; Schema: public; Owner: - |
| 69 | +-- |
| 70 | + |
| 71 | +CREATE TABLE public.schema_table_infos_35d ( |
| 72 | + schema_table_id bigint NOT NULL, |
| 73 | + collected_at timestamp with time zone NOT NULL, |
| 74 | + server_id uuid NOT NULL |
| 75 | +) |
| 76 | +PARTITION BY RANGE (collected_at); |
| 77 | + |
| 78 | + |
| 79 | +ALTER TABLE ONLY public.schema_table_infos_35d |
| 80 | + ADD CONSTRAINT schema_table_infos_35d_pkey PRIMARY KEY (schema_table_id, collected_at); |
| 81 | + |
| 82 | +-- |
| 83 | +-- Name: schema_table_infos_35d_20240920; Type: TABLE; Schema: public; Owner: - |
| 84 | +-- |
| 85 | + |
| 86 | +CREATE TABLE public.schema_table_infos_35d_20240920 ( |
| 87 | + schema_table_id bigint NOT NULL, |
| 88 | + collected_at timestamp with time zone NOT NULL, |
| 89 | + server_id uuid NOT NULL |
| 90 | +); |
| 91 | + |
| 92 | +-- |
| 93 | +-- Name: schema_table_infos_35d_20240920; Type: TABLE ATTACH; Schema: public; Owner: - |
| 94 | +-- |
| 95 | + |
| 96 | +ALTER TABLE ONLY public.schema_table_infos_35d ATTACH PARTITION public.schema_table_infos_35d_20240920 FOR VALUES FROM ('2024-09-19 19:00:00-05') TO ('2024-09-20 19:00:00-05'); |
| 97 | + |
| 98 | +-- |
| 99 | +-- Name: schema_table_infos_35d_20240920 schema_table_infos_35d_20240920_pkey; Type: CONSTRAINT; Schema: public; Owner: - |
| 100 | +-- |
| 101 | + |
| 102 | +ALTER TABLE ONLY public.schema_table_infos_35d_20240920 |
| 103 | + ADD CONSTRAINT schema_table_infos_35d_20240920_pkey PRIMARY KEY (schema_table_id, collected_at); |
| 104 | + |
| 105 | +-- |
| 106 | +-- Name: schema_table_infos_35d_20240920_server_id_idx; Type: INDEX; Schema: public; Owner: - |
| 107 | +-- |
| 108 | + |
| 109 | +CREATE INDEX schema_table_infos_35d_20240920_server_id_idx ON public.schema_table_infos_35d_20240920 USING btree (server_id); |
| 110 | + |
| 111 | +-- |
| 112 | +-- Name: schema_table_infos_35d_2024092_schema_table_id_collected_at_idx; Type: INDEX; Schema: public; Owner: - |
| 113 | +-- |
| 114 | + |
| 115 | +CREATE INDEX schema_table_infos_35d_2024092_schema_table_id_collected_at_idx ON public.schema_table_infos_35d_20240920 USING btree (schema_table_id, collected_at DESC); |
| 116 | + |
| 117 | +-- |
| 118 | +-- Name: schema_table_infos_35d_20240920_pkey; Type: INDEX ATTACH; Schema: public; Owner: - |
| 119 | +-- |
| 120 | + |
| 121 | +ALTER INDEX public.schema_table_infos_35d_pkey ATTACH PARTITION public.schema_table_infos_35d_20240920_pkey; |
| 122 | + |
| 123 | + |
| 124 | +-- |
| 125 | +-- Name: schema_table_infos_35d_20240920_server_id_idx; Type: INDEX ATTACH; Schema: public; Owner: - |
| 126 | +-- |
| 127 | + |
| 128 | +ALTER INDEX public.index_schema_table_infos_35d_on_server_id ATTACH PARTITION public.schema_table_infos_35d_20240920_server_id_idx; |
0 commit comments