--
|
-- one_c_temp_memory_catalog_lifecycle
|
--
|
|
SET client_min_messages = warning;
|
|
CREATE TEMP TABLE tmc_life_saved_oids(
|
label text PRIMARY KEY,
|
oid_value oid NOT NULL
|
);
|
|
SET enable_temp_memory_catalog = off;
|
|
CREATE TEMP TABLE tmc_life_phys(
|
id integer,
|
payload integer
|
);
|
|
SET enable_temp_memory_catalog = on;
|
|
ALTER TABLE pg_temp.tmc_life_phys
|
ADD COLUMN added integer DEFAULT 11;
|
ALTER TABLE pg_temp.tmc_life_phys
|
ADD CONSTRAINT tmc_life_phys_payload_check CHECK (payload > 0);
|
|
INSERT INTO pg_temp.tmc_life_phys(id, payload)
|
SELECT g, g * 10
|
FROM generate_series(1, 40) AS g;
|
|
SELECT id, payload, added
|
FROM pg_temp.tmc_life_phys
|
WHERE id IN (1, 40)
|
ORDER BY id;
|
|
ANALYZE pg_temp.tmc_life_phys;
|
|
WITH phys_oid AS (
|
SELECT 'pg_temp.tmc_life_phys'::regclass AS oid
|
)
|
SELECT
|
(SELECT count(*) FROM pg_catalog.pg_class WHERE oid = phys_oid.oid) AS pg_class_rows,
|
(SELECT count(*) > 0 FROM pg_catalog.pg_attribute WHERE attrelid = phys_oid.oid AND attnum > 0 AND NOT attisdropped) AS pg_attribute_rows_present,
|
(SELECT count(*) > 0 FROM pg_catalog.pg_attrdef WHERE adrelid = phys_oid.oid) AS pg_attrdef_rows_present,
|
(SELECT count(*) > 0 FROM pg_catalog.pg_constraint WHERE conrelid = phys_oid.oid) AS pg_constraint_rows_present,
|
(SELECT count(*) > 0 FROM pg_catalog.pg_statistic WHERE starelid = phys_oid.oid AND staattnum > 0) AS pg_statistic_rows_present
|
FROM phys_oid;
|
|
DROP TABLE pg_temp.tmc_life_phys;
|
|
SET enable_temp_memory_catalog = on;
|
|
CREATE TEMP TABLE tmc_life_mem(
|
id integer,
|
payload integer
|
);
|
|
INSERT INTO pg_temp.tmc_life_saved_oids(label, oid_value)
|
VALUES ('tmc_life_mem', 'pg_temp.tmc_life_mem'::regclass);
|
|
SET enable_temp_memory_catalog = off;
|
|
ALTER TABLE pg_temp.tmc_life_mem
|
ADD COLUMN value integer DEFAULT 7;
|
|
INSERT INTO pg_temp.tmc_life_mem(id, payload)
|
VALUES (1, 100);
|
|
SELECT id, payload, value
|
FROM pg_temp.tmc_life_mem
|
ORDER BY id;
|
|
WITH mem_oid AS (
|
SELECT oid_value AS oid
|
FROM pg_temp.tmc_life_saved_oids
|
WHERE label = 'tmc_life_mem'
|
)
|
SELECT
|
(SELECT count(*) FROM pg_catalog.pg_attribute WHERE attrelid = mem_oid.oid AND attname = 'value') AS physical_value_attribute_rows,
|
(SELECT count(*) FROM pg_catalog.pg_attrdef WHERE adrelid = mem_oid.oid) AS physical_attrdef_rows
|
FROM mem_oid;
|
|
ALTER TABLE pg_temp.tmc_life_mem
|
ALTER COLUMN value SET DEFAULT 13;
|
|
INSERT INTO pg_temp.tmc_life_mem(id, payload)
|
VALUES (2, 200);
|
|
SELECT id, value
|
FROM pg_temp.tmc_life_mem
|
ORDER BY id;
|
|
WITH mem_oid AS (
|
SELECT oid_value AS oid
|
FROM pg_temp.tmc_life_saved_oids
|
WHERE label = 'tmc_life_mem'
|
)
|
SELECT
|
(SELECT count(*) FROM pg_catalog.pg_attrdef WHERE adrelid = mem_oid.oid) AS physical_attrdef_rows_after_set_default
|
FROM mem_oid;
|
|
ALTER TABLE pg_temp.tmc_life_mem
|
ADD CONSTRAINT tmc_life_mem_value_check CHECK (value > 0);
|
|
INSERT INTO pg_temp.tmc_life_mem(id, payload, value)
|
VALUES (3, 300, 17);
|
|
DO $$
|
BEGIN
|
BEGIN
|
INSERT INTO pg_temp.tmc_life_mem(id, payload, value)
|
VALUES (4, 400, -1);
|
RAISE EXCEPTION 'tmc_life_mem_value_check did not reject invalid input';
|
EXCEPTION
|
WHEN check_violation THEN
|
NULL;
|
END;
|
END;
|
$$;
|
|
WITH mem_oid AS (
|
SELECT oid_value AS oid
|
FROM pg_temp.tmc_life_saved_oids
|
WHERE label = 'tmc_life_mem'
|
)
|
SELECT
|
(SELECT count(*) FROM pg_catalog.pg_constraint WHERE conrelid = mem_oid.oid) AS physical_constraint_rows_after_check
|
FROM mem_oid;
|
|
ALTER TABLE pg_temp.tmc_life_mem
|
ADD CONSTRAINT tmc_life_mem_id_unique UNIQUE (id, payload);
|
|
DO $$
|
BEGIN
|
BEGIN
|
INSERT INTO pg_temp.tmc_life_mem(id, payload, value)
|
VALUES (1, 100, 13);
|
RAISE EXCEPTION 'tmc_life_mem_id_unique did not reject duplicate input';
|
EXCEPTION
|
WHEN unique_violation THEN
|
NULL;
|
END;
|
END;
|
$$;
|
|
INSERT INTO pg_temp.tmc_life_saved_oids(label, oid_value)
|
VALUES (
|
'tmc_life_mem_idx',
|
'pg_temp.tmc_life_mem_id_unique'::regclass::oid
|
);
|
|
SELECT to_regclass('pg_temp.tmc_life_mem_id_unique') IS NOT NULL AS mem_unique_visible;
|
|
WITH mem_oid AS (
|
SELECT oid_value AS oid
|
FROM pg_temp.tmc_life_saved_oids
|
WHERE label = 'tmc_life_mem'
|
),
|
mem_index_oid AS (
|
SELECT oid_value AS oid
|
FROM pg_temp.tmc_life_saved_oids
|
WHERE label = 'tmc_life_mem_idx'
|
)
|
SELECT
|
(SELECT count(*) FROM pg_catalog.pg_constraint WHERE conrelid = mem_oid.oid) AS physical_constraint_rows_after_unique,
|
(SELECT count(*) FROM pg_catalog.pg_class WHERE oid = mem_index_oid.oid) AS physical_index_class_rows,
|
(SELECT count(*) FROM pg_catalog.pg_index WHERE indexrelid = mem_index_oid.oid) AS physical_pg_index_rows,
|
(SELECT count(*) FROM pg_catalog.pg_type WHERE typrelid = mem_index_oid.oid) AS physical_index_type_rows
|
FROM mem_oid, mem_index_oid;
|
|
WITH mem_oid AS (
|
SELECT oid_value AS oid
|
FROM pg_temp.tmc_life_saved_oids
|
WHERE label = 'tmc_life_mem'
|
)
|
SELECT
|
(SELECT count(*)
|
FROM pg_catalog.pg_depend
|
WHERE classid = 'pg_class'::regclass
|
AND objid = mem_oid.oid
|
AND objsubid = 3
|
AND refclassid = 'pg_type'::regclass) AS physical_value_type_depend_rows
|
FROM mem_oid;
|
|
INSERT INTO pg_temp.tmc_life_mem(id, payload, value)
|
SELECT g, g * 100, g + 20
|
FROM generate_series(10, 60) AS g;
|
|
ANALYZE pg_temp.tmc_life_mem;
|
|
WITH mem_oid AS (
|
SELECT oid_value AS oid
|
FROM pg_temp.tmc_life_saved_oids
|
WHERE label = 'tmc_life_mem'
|
)
|
SELECT
|
(SELECT count(*) FROM pg_temp.tmc_life_mem) AS live_rows,
|
(SELECT min(value) FROM pg_temp.tmc_life_mem) AS min_value,
|
(SELECT max(value) FROM pg_temp.tmc_life_mem) AS max_value,
|
(SELECT count(*) FROM pg_catalog.pg_statistic WHERE starelid = mem_oid.oid AND staattnum > 0) AS physical_pg_statistic_rows
|
FROM mem_oid;
|
|
SET enable_temp_memory_catalog = on;
|
|
CREATE TEMP TABLE tmc_life_parent(
|
id integer,
|
payload integer
|
) PARTITION BY RANGE (id);
|
|
CREATE TEMP TABLE tmc_life_child(
|
id integer,
|
payload integer
|
);
|
|
INSERT INTO pg_temp.tmc_life_saved_oids(label, oid_value)
|
VALUES
|
('tmc_life_parent', 'pg_temp.tmc_life_parent'::regclass),
|
('tmc_life_child', 'pg_temp.tmc_life_child'::regclass);
|
|
SET enable_temp_memory_catalog = off;
|
|
ALTER TABLE pg_temp.tmc_life_parent
|
ATTACH PARTITION pg_temp.tmc_life_child
|
FOR VALUES FROM (0) TO (100);
|
|
INSERT INTO pg_temp.tmc_life_parent(id, payload)
|
VALUES (5, 500);
|
|
SELECT id, payload
|
FROM pg_temp.tmc_life_child;
|
|
WITH parent_oid AS (
|
SELECT oid_value AS oid
|
FROM pg_temp.tmc_life_saved_oids
|
WHERE label = 'tmc_life_parent'
|
),
|
child_oid AS (
|
SELECT oid_value AS oid
|
FROM pg_temp.tmc_life_saved_oids
|
WHERE label = 'tmc_life_child'
|
)
|
SELECT
|
(SELECT count(*) FROM pg_catalog.pg_inherits WHERE inhparent = parent_oid.oid AND inhrelid = child_oid.oid) AS physical_pg_inherits_rows
|
FROM parent_oid, child_oid;
|
|
SET enable_temp_memory_catalog = on;
|
|
CREATE TEMP TABLE tmc_life_rename_old(
|
id integer
|
);
|
|
INSERT INTO pg_temp.tmc_life_saved_oids(label, oid_value)
|
VALUES ('tmc_life_rename', 'pg_temp.tmc_life_rename_old'::regclass);
|
|
SET enable_temp_memory_catalog = off;
|
|
ALTER TABLE pg_temp.tmc_life_rename_old
|
RENAME TO tmc_life_rename_new;
|
|
WITH rename_oid AS (
|
SELECT oid_value AS oid
|
FROM pg_temp.tmc_life_saved_oids
|
WHERE label = 'tmc_life_rename'
|
)
|
SELECT
|
to_regclass('pg_temp.tmc_life_rename_old') IS NULL AS old_name_missing,
|
to_regclass('pg_temp.tmc_life_rename_new') IS NOT NULL AS new_name_visible,
|
(SELECT count(*) FROM pg_catalog.pg_class WHERE oid = rename_oid.oid) AS physical_pg_class_rows
|
FROM rename_oid;
|
|
SET enable_temp_memory_catalog = on;
|
|
CREATE TEMP TABLE tmc_life_rename_rb(
|
id integer
|
);
|
|
SET enable_temp_memory_catalog = off;
|
|
BEGIN;
|
SAVEPOINT tmc_life_rename_rb_sp;
|
ALTER TABLE pg_temp.tmc_life_rename_rb
|
RENAME TO tmc_life_rename_rb_new;
|
SELECT
|
to_regclass('pg_temp.tmc_life_rename_rb') IS NULL AS rename_rb_old_missing_inside,
|
to_regclass('pg_temp.tmc_life_rename_rb_new') IS NOT NULL AS rename_rb_new_visible_inside;
|
ROLLBACK TO SAVEPOINT tmc_life_rename_rb_sp;
|
RELEASE SAVEPOINT tmc_life_rename_rb_sp;
|
COMMIT;
|
|
SELECT
|
to_regclass('pg_temp.tmc_life_rename_rb') IS NOT NULL AS rename_rb_old_visible_after,
|
to_regclass('pg_temp.tmc_life_rename_rb_new') IS NULL AS rename_rb_new_missing_after;
|
|
SET enable_temp_memory_catalog = on;
|
|
CREATE TEMP TABLE tmc_life_truncate(
|
id integer,
|
payload text
|
);
|
|
INSERT INTO pg_temp.tmc_life_saved_oids(label, oid_value)
|
VALUES ('tmc_life_truncate', 'pg_temp.tmc_life_truncate'::regclass);
|
|
INSERT INTO pg_temp.tmc_life_truncate(id, payload)
|
VALUES
|
(1, repeat('x', 10000)),
|
(2, 'short');
|
|
SET enable_temp_memory_catalog = off;
|
|
TRUNCATE TABLE pg_temp.tmc_life_truncate;
|
|
INSERT INTO pg_temp.tmc_life_truncate(id, payload)
|
VALUES (3, 'after truncate');
|
|
WITH truncate_oid AS (
|
SELECT oid_value AS oid
|
FROM pg_temp.tmc_life_saved_oids
|
WHERE label = 'tmc_life_truncate'
|
)
|
SELECT
|
(SELECT count(*) FROM pg_temp.tmc_life_truncate) AS rows_after_truncate,
|
to_regclass('pg_temp.tmc_life_truncate') IS NOT NULL AS truncate_table_visible,
|
(SELECT payload FROM pg_temp.tmc_life_truncate WHERE id = 3) AS inserted_payload,
|
(SELECT count(*) FROM pg_catalog.pg_class WHERE oid = truncate_oid.oid) AS physical_pg_class_rows
|
FROM truncate_oid;
|
|
SET enable_temp_memory_catalog = on;
|
|
CREATE TEMP TABLE tmc_life_reindex(
|
id integer,
|
payload integer,
|
extra integer
|
);
|
|
INSERT INTO pg_temp.tmc_life_reindex
|
SELECT g, g * 5, g * 7
|
FROM generate_series(1, 25) AS g;
|
|
CREATE INDEX tmc_life_reindex_idx
|
ON pg_temp.tmc_life_reindex USING btree (id, payload);
|
|
INSERT INTO pg_temp.tmc_life_saved_oids(label, oid_value)
|
VALUES ('tmc_life_reindex_idx', 'pg_temp.tmc_life_reindex_idx'::regclass);
|
|
SET enable_temp_memory_catalog = off;
|
|
REINDEX INDEX pg_temp.tmc_life_reindex_idx;
|
|
WITH reindex_oid AS (
|
SELECT oid_value AS oid
|
FROM pg_temp.tmc_life_saved_oids
|
WHERE label = 'tmc_life_reindex_idx'
|
)
|
SELECT
|
to_regclass('pg_temp.tmc_life_reindex_idx') IS NOT NULL AS reindex_visible,
|
(SELECT extra FROM pg_temp.tmc_life_reindex WHERE id = 7 AND payload = 35) AS indexed_lookup_extra,
|
(SELECT count(*) FROM pg_catalog.pg_class WHERE oid = reindex_oid.oid) AS physical_pg_class_rows,
|
(SELECT count(*) FROM pg_catalog.pg_index WHERE indexrelid = reindex_oid.oid) AS physical_pg_index_rows,
|
(SELECT count(*) FROM pg_catalog.pg_type WHERE typrelid = reindex_oid.oid) AS physical_pg_type_rows
|
FROM reindex_oid;
|
|
SET enable_temp_memory_catalog = on;
|
|
CREATE TEMP TABLE tmc_life_drop(
|
id integer,
|
payload integer DEFAULT 17,
|
CONSTRAINT tmc_life_drop_payload_check CHECK (payload > 0),
|
CONSTRAINT tmc_life_drop_id_payload_unique UNIQUE (id, payload)
|
);
|
|
INSERT INTO pg_temp.tmc_life_drop(id)
|
VALUES (1);
|
|
INSERT INTO pg_temp.tmc_life_saved_oids(label, oid_value)
|
VALUES ('tmc_life_drop', 'pg_temp.tmc_life_drop'::regclass);
|
|
INSERT INTO pg_temp.tmc_life_saved_oids(label, oid_value)
|
VALUES (
|
'tmc_life_drop_idx',
|
'pg_temp.tmc_life_drop_id_payload_unique'::regclass::oid
|
);
|
|
SET enable_temp_memory_catalog = off;
|
|
DROP TABLE pg_temp.tmc_life_drop;
|
|
WITH drop_oid AS (
|
SELECT oid_value AS oid
|
FROM pg_temp.tmc_life_saved_oids
|
WHERE label = 'tmc_life_drop'
|
),
|
drop_index_oid AS (
|
SELECT oid_value AS oid
|
FROM pg_temp.tmc_life_saved_oids
|
WHERE label = 'tmc_life_drop_idx'
|
)
|
SELECT
|
to_regclass('pg_temp.tmc_life_drop') IS NULL AS drop_table_missing,
|
to_regclass('pg_temp.tmc_life_drop_id_payload_unique') IS NULL AS drop_index_missing,
|
(SELECT count(*) FROM pg_catalog.pg_class WHERE oid = drop_oid.oid) AS residual_pg_class_rows,
|
(SELECT count(*) FROM pg_catalog.pg_attribute WHERE attrelid = drop_oid.oid) AS residual_pg_attribute_rows,
|
(SELECT count(*) FROM pg_catalog.pg_attrdef WHERE adrelid = drop_oid.oid) AS residual_pg_attrdef_rows,
|
(SELECT count(*) FROM pg_catalog.pg_constraint WHERE conrelid = drop_oid.oid) AS residual_pg_constraint_rows,
|
(SELECT count(*) FROM pg_catalog.pg_class WHERE oid = drop_index_oid.oid) AS residual_index_class_rows,
|
(SELECT count(*) FROM pg_catalog.pg_index WHERE indexrelid = drop_index_oid.oid) AS residual_pg_index_rows,
|
(SELECT count(*) FROM pg_catalog.pg_type WHERE typrelid = drop_index_oid.oid) AS residual_pg_type_rows
|
FROM drop_oid, drop_index_oid;
|
|
SET enable_temp_memory_catalog = on;
|
|
CREATE TEMP TABLE tmc_life_drop_rb(
|
id integer,
|
payload integer DEFAULT 23,
|
CONSTRAINT tmc_life_drop_rb_payload_check CHECK (payload > 0),
|
CONSTRAINT tmc_life_drop_rb_id_payload_unique UNIQUE (id, payload)
|
);
|
|
INSERT INTO pg_temp.tmc_life_drop_rb(id)
|
VALUES (1);
|
|
INSERT INTO pg_temp.tmc_life_saved_oids(label, oid_value)
|
VALUES ('tmc_life_drop_rb', 'pg_temp.tmc_life_drop_rb'::regclass);
|
|
INSERT INTO pg_temp.tmc_life_saved_oids(label, oid_value)
|
VALUES (
|
'tmc_life_drop_rb_idx',
|
'pg_temp.tmc_life_drop_rb_id_payload_unique'::regclass::oid
|
);
|
|
SET enable_temp_memory_catalog = off;
|
|
BEGIN;
|
SAVEPOINT tmc_life_drop_rb_sp;
|
DROP TABLE pg_temp.tmc_life_drop_rb;
|
SELECT to_regclass('pg_temp.tmc_life_drop_rb') IS NULL AS drop_rb_missing_inside;
|
ROLLBACK TO SAVEPOINT tmc_life_drop_rb_sp;
|
RELEASE SAVEPOINT tmc_life_drop_rb_sp;
|
COMMIT;
|
|
DO $$
|
BEGIN
|
BEGIN
|
INSERT INTO pg_temp.tmc_life_drop_rb(id, payload)
|
VALUES (2, 0);
|
RAISE EXCEPTION 'tmc_life_drop_rb_payload_check did not reject invalid input';
|
EXCEPTION
|
WHEN check_violation THEN
|
NULL;
|
END;
|
|
BEGIN
|
INSERT INTO pg_temp.tmc_life_drop_rb(id, payload)
|
VALUES (1, 23);
|
RAISE EXCEPTION 'tmc_life_drop_rb_id_payload_unique did not reject duplicate input';
|
EXCEPTION
|
WHEN unique_violation THEN
|
NULL;
|
END;
|
END;
|
$$;
|
|
WITH drop_rb_oid AS (
|
SELECT oid_value AS oid
|
FROM pg_temp.tmc_life_saved_oids
|
WHERE label = 'tmc_life_drop_rb'
|
),
|
drop_rb_index_oid AS (
|
SELECT oid_value AS oid
|
FROM pg_temp.tmc_life_saved_oids
|
WHERE label = 'tmc_life_drop_rb_idx'
|
)
|
SELECT
|
to_regclass('pg_temp.tmc_life_drop_rb') IS NOT NULL AS drop_rb_visible_after,
|
(SELECT id FROM pg_temp.tmc_life_drop_rb WHERE id = 1) AS preserved_id,
|
(SELECT payload FROM pg_temp.tmc_life_drop_rb WHERE id = 1) AS preserved_payload,
|
(SELECT count(*) FROM pg_catalog.pg_class WHERE oid = drop_rb_oid.oid) AS residual_pg_class_rows,
|
(SELECT count(*) FROM pg_catalog.pg_attrdef WHERE adrelid = drop_rb_oid.oid) AS residual_pg_attrdef_rows,
|
(SELECT count(*) FROM pg_catalog.pg_constraint WHERE conrelid = drop_rb_oid.oid) AS residual_pg_constraint_rows,
|
(SELECT count(*) FROM pg_catalog.pg_class WHERE oid = drop_rb_index_oid.oid) AS residual_index_class_rows,
|
(SELECT count(*) FROM pg_catalog.pg_index WHERE indexrelid = drop_rb_index_oid.oid) AS residual_pg_index_rows
|
FROM drop_rb_oid, drop_rb_index_oid;
|
|
SET enable_temp_memory_catalog = on;
|
|
CREATE TEMP TABLE tmc_life_alter_rb(
|
id integer,
|
payload integer
|
);
|
|
INSERT INTO pg_temp.tmc_life_saved_oids(label, oid_value)
|
VALUES ('tmc_life_alter_rb', 'pg_temp.tmc_life_alter_rb'::regclass);
|
|
INSERT INTO pg_temp.tmc_life_alter_rb(id, payload)
|
VALUES (1, 10);
|
|
SET enable_temp_memory_catalog = off;
|
|
BEGIN;
|
SAVEPOINT tmc_life_alter_rb_sp;
|
ALTER TABLE pg_temp.tmc_life_alter_rb
|
ADD COLUMN added integer DEFAULT 31;
|
ALTER TABLE pg_temp.tmc_life_alter_rb
|
ADD CONSTRAINT tmc_life_alter_rb_added_check CHECK (added > 0);
|
INSERT INTO pg_temp.tmc_life_alter_rb(id, payload)
|
VALUES (2, 20);
|
SELECT id, payload, added
|
FROM pg_temp.tmc_life_alter_rb
|
ORDER BY id;
|
ROLLBACK TO SAVEPOINT tmc_life_alter_rb_sp;
|
RELEASE SAVEPOINT tmc_life_alter_rb_sp;
|
COMMIT;
|
|
DO $$
|
BEGIN
|
BEGIN
|
PERFORM added FROM pg_temp.tmc_life_alter_rb LIMIT 1;
|
RAISE EXCEPTION 'rolled back column added is still visible';
|
EXCEPTION
|
WHEN undefined_column THEN
|
NULL;
|
END;
|
END;
|
$$;
|
|
WITH alter_rb_oid AS (
|
SELECT oid_value AS oid
|
FROM pg_temp.tmc_life_saved_oids
|
WHERE label = 'tmc_life_alter_rb'
|
)
|
SELECT
|
(SELECT count(*) FROM pg_catalog.pg_attribute WHERE attrelid = alter_rb_oid.oid AND attname = 'added') AS residual_added_attribute_rows,
|
(SELECT count(*) FROM pg_catalog.pg_attrdef WHERE adrelid = alter_rb_oid.oid) AS residual_pg_attrdef_rows,
|
(SELECT count(*) FROM pg_catalog.pg_constraint WHERE conrelid = alter_rb_oid.oid AND conname = 'tmc_life_alter_rb_added_check') AS residual_pg_constraint_rows
|
FROM alter_rb_oid;
|
|
SELECT id, payload
|
FROM pg_temp.tmc_life_alter_rb
|
ORDER BY id;
|
|
DROP TABLE IF EXISTS pg_temp.tmc_life_alter_rb;
|
DROP TABLE IF EXISTS pg_temp.tmc_life_drop_rb;
|
DROP TABLE IF EXISTS pg_temp.tmc_life_reindex;
|
DROP TABLE IF EXISTS pg_temp.tmc_life_truncate;
|
DROP TABLE IF EXISTS pg_temp.tmc_life_rename_rb;
|
DROP TABLE IF EXISTS pg_temp.tmc_life_rename_new;
|
DROP TABLE IF EXISTS pg_temp.tmc_life_child;
|
DROP TABLE IF EXISTS pg_temp.tmc_life_parent;
|
DROP TABLE IF EXISTS pg_temp.tmc_life_mem;
|
DROP TABLE IF EXISTS pg_temp.tmc_life_saved_oids;
|
|
RESET enable_temp_memory_catalog;
|