1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
---
--- pgcopydb test/cdc/ddl.sql
---
--- This file implements DDL to create postgres objects covering special cases
-- like maximum identifiers lengths, identifiers that requires double quotes,
-- etc.
--
-- create schemas and tables with names that needs double-quoting
--
begin;
create schema if not exists "Sp1eCial .Char";
create table "Sp1eCial .Char"."source1testing"(
"s0" serial primary key,
"s""1" int not null
);
commit;
--
-- create schema and table with length of NAMEDATALEN
--
begin;
create schema "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789012345678901234567890123456";
create table "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789012345678901234567890123456"."abcdefghijklmnopqrstuvwxyz0123456789012345678901234567890123456"(
"abcdefghijklmnopqrstuvwxyz0123456789012345678901234567890123456" serial primary key,
"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789012345678901234567890123456" int not null
);
commit;
|