mirror of
https://gitlab.com/depesz/explain.depesz.com.git
synced 2024-11-28 08:58:52 +02:00
5fc15d5ed8
We don't have that many of them, but on slow(ish) server dumps or vacuums take long time. Partitioning will make it possible to handle work in smaller increments
66 lines
5.4 KiB
PL/PgSQL
66 lines
5.4 KiB
PL/PgSQL
BEGIN;
|
|
CREATE SCHEMA plans;
|
|
create table plans."part_0" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_1" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_2" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_3" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_4" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_5" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_6" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_7" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_8" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_9" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_A" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_B" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_C" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_D" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_E" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_F" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_G" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_H" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_I" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_J" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_K" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_L" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_M" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_N" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_O" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_P" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_Q" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_R" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_S" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_T" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_U" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_V" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_W" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_X" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_Y" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_Z" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_a" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_b" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_c" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_d" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_e" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_f" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_g" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_h" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_i" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_j" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_k" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_l" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_m" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_n" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_o" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_p" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_q" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_r" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_s" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_t" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_u" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_v" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_w" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_x" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_y" ( like public.plans including all ) inherits (public.plans);
|
|
create table plans."part_z" ( like public.plans including all ) inherits (public.plans);
|
|
COMMIT;
|