# Copyright Materialize, Inc. and contributors. All rights reserved. # # Use of this software is governed by the Business Source License # included in the LICENSE file at the root of this repository. # # As of the Change Date specified in that file, in accordance with # the Business Source License, use of this software will be governed # by the Apache License, Version 2.0. $ postgres-execute connection=postgres://postgres:postgres@postgres DROP TABLE IF EXISTS ten; CREATE TABLE ten (f1 INTEGER); ALTER TABLE ten REPLICA IDENTITY FULL; INSERT INTO ten VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10); DROP TABLE IF EXISTS t0; CREATE TABLE t0 (f1 INTEGER, f2 TEXT); ALTER TABLE t0 REPLICA IDENTITY FULL; DROP TABLE IF EXISTS t1; CREATE TABLE t1 (f1 INTEGER, f2 TEXT); ALTER TABLE t1 REPLICA IDENTITY FULL; INSERT INTO t1 SELECT a1.f1 + a6.f1 , E'abc\nxyz' FROM ten AS a1, ten AS a2, ten AS a3, ten AS a4, ten AS a5, ten AS a6; DROP TABLE IF EXISTS t2; CREATE TABLE t2 (f1 INTEGER, f2 TEXT); ALTER TABLE t2 REPLICA IDENTITY FULL; INSERT INTO t2 SELECT a1.f1 + a6.f1 , E'abc\nxyz' FROM ten AS a1, ten AS a2, ten AS a3, ten AS a4, ten AS a5, ten AS a6; DROP TABLE IF EXISTS alter_fail_drop_col; CREATE TABLE alter_fail_drop_col (f1 INTEGER, f2 INTEGER); ALTER TABLE alter_fail_drop_col REPLICA IDENTITY FULL; INSERT INTO alter_fail_drop_col VALUES (1, 1); DROP TABLE IF EXISTS alter_fail_drop_constraint; CREATE TABLE alter_fail_drop_constraint (f1 INTEGER NOT NULL); ALTER TABLE alter_fail_drop_constraint REPLICA IDENTITY FULL; INSERT INTO alter_fail_drop_constraint VALUES (1);